Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one a

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Naoto Sato
On Tue, 4 Oct 2022 18:42:52 GMT, Justin Lu wrote: >> src/java.base/share/classes/java/text/DigitList.java line 161: >> >>> 159: public final double getDouble() { >>> 160: if (count == 0) { >>> 161: return 0.0; >> >> The doc for this method is incorrect: >> >> * If (coun

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Justin Lu
On Tue, 4 Oct 2022 18:20:26 GMT, Brent Christian wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Remove temp var >> >> Remove temp variables and replace with method chaining when possible > > src/java.base/share/

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-04 Thread Brent Christian
On Mon, 3 Oct 2022 21:22:03 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one a

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-03 Thread Justin Lu
On Mon, 3 Oct 2022 20:42:55 GMT, Jonathan Gibbons wrote: >> Justin Lu has updated the pull request incrementally with two additional >> commits since the last revision: >> >> - Remove comment typo >> - Remove test wrapper > > src/java.base/share/classes/java/text/DigitList.java line 796: > >

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v5]

2022-10-03 Thread Justin Lu
> Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Remove temp va

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-03 Thread Jonathan Gibbons
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-03 Thread Brent Christian
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-10-01 Thread Lance Andersen
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-09-30 Thread Naoto Sato
On Fri, 30 Sep 2022 20:08:10 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with two

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v4]

2022-09-30 Thread Justin Lu
> Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names Justin Lu has updated the pull request incrementally with two additional commits since the last revision: - Remove comme

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-30 Thread Roger Riggs
On Fri, 30 Sep 2022 16:52:40 GMT, Brent Christian wrote: >> Due to some [bootstrapping >> issues](https://stackoverflow.com/questions/71834059/why-invokedynamic-based-string-concatenation-is-not-available-for-javac-in-java) >> in `java.base` explicit String concatenation is not translated into

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-30 Thread Brent Christian
On Fri, 30 Sep 2022 16:14:38 GMT, Сергей Цыпанов wrote: >> src/java.base/share/classes/java/text/PatternEntry.java line 291: >> >>> 289: // We re-use these objects in order to improve performance >>> 290: private StringBuilder newChars = new StringBuilder(); >>> 291: priv

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-30 Thread Сергей Цыпанов
On Thu, 29 Sep 2022 22:29:43 GMT, Brent Christian wrote: >> Justin Lu has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Tweak indentation in PaternEntry > > src/java.base/share/classes/java/text/PatternEntry.java line 291: > >> 289:

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Naoto Sato
On Fri, 30 Sep 2022 00:25:24 GMT, Lance Andersen wrote: > > > Understand, I guess I don't see the difference from moving the tags to > > > the actual test but there could be a subtlety I am missing (wouldn't be > > > the first time ;-) ) > > > > > > The runner has a @library/@build tag to bui

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Lance Andersen
On Thu, 29 Sep 2022 22:29:10 GMT, Naoto Sato wrote: > > Understand, I guess I don't see the difference from moving the tags to the > > actual test but there could be a subtlety I am missing (wouldn't be the > > first time ;-) ) > > The runner has a @library/@build tag to build the test case as

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v3]

2022-09-29 Thread Justin Lu
> Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Tweak indentat

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v2]

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 22:15:00 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Naoto Sato
On Thu, 29 Sep 2022 22:19:26 GMT, Lance Andersen wrote: > Understand, I guess I don't see the difference from moving the tags to the > actual test but there could be a subtlety I am missing (wouldn't be the first > time ;-) ) The runner has a @library/@build tag to build the test case as a lib

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Lance Andersen
On Thu, 29 Sep 2022 22:07:48 GMT, Naoto Sato wrote: > AFAICT, the reason is described in the test class description, i.e., tweak to > be in `java.text` package so that it can test the internal `hashCode` method. Understand, I guess I don't see the difference from moving the tags to the actual

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v2]

2022-09-29 Thread Lance Andersen
On Thu, 29 Sep 2022 22:15:00 GMT, Justin Lu wrote: >> Problem: Unnecessary instances of StringBuffer within java.text (internal >> only) >> >> Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method >> names > > Justin Lu has updated the pull request incrementally with one

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text [v2]

2022-09-29 Thread Justin Lu
> Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names Justin Lu has updated the pull request incrementally with one additional commit since the last revision: Adjust typo wi

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Naoto Sato
On Wed, 28 Sep 2022 22:54:33 GMT, Justin Lu wrote: > Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names AFAICT, the reason is described in the test class description, i.e., t

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Lance Andersen
On Thu, 29 Sep 2022 21:49:05 GMT, Brent Christian wrote: > > should we update > > test/jdk/sun/text/IntHashtable/patch-src/java.base/java/text/Bug4170614Test.java > > to include `@test, @bug, @run, @summary`? > > ``` > /* > (this test doesn't have an at-test tag because it's run by > Bug4

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Justin Lu
On Thu, 29 Sep 2022 21:34:24 GMT, Lance Andersen wrote: > should we update > test/jdk/sun/text/IntHashtable/patch-src/java.base/java/text/Bug4170614Test.java > to include `@test, @bug, @run, @summary`? Brent actually pointed that out to me as well. I believe since Bug4170614Test.java is manag

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Brent Christian
On Thu, 29 Sep 2022 21:48:52 GMT, Justin Lu wrote: > should we update > test/jdk/sun/text/IntHashtable/patch-src/java.base/java/text/Bug4170614Test.java > to include `@test, @bug, @run, @summary`? /* (this test doesn't have an at-test tag because it's run by Bug4170614TestRun.java i

Re: RFR: 8294397: Replace StringBuffer with StringBuilder within java.text

2022-09-29 Thread Lance Andersen
On Wed, 28 Sep 2022 22:54:33 GMT, Justin Lu wrote: > Problem: Unnecessary instances of StringBuffer within java.text (internal > only) > > Fix: StringBuffer Replaced with StringBuilder, and adjusted variable/method > names Looks good. should we update test/jdk/sun/text/IntHashtable/patch-sr