Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v3]

2021-08-02 Thread Claes Redestad
On Mon, 2 Aug 2021 12:29:00 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`, `

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Сергей Цыпанов
On Mon, 2 Aug 2021 11:09:30 GMT, Claes Redestad wrote: >> Сергей Цыпанов has updated the pull request incrementally with two >> additional commits since the last revision: >> >> - 8269665: Update copy-right year >> - 8269665: Reuse String.valueOf(boolean) > > src/java.base/share/classes/java/

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v3]

2021-08-02 Thread Сергей Цыпанов
> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` and > `Float` in their implementations of `Object.toString()` delegate to own > utility `toString(primitive)` methods. > > Unlike those, `Boolean`, `Byte`, `Character` and `Short` just duplicate the > contents of utilit

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Claes Redestad
On Sun, 4 Jul 2021 21:35:31 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`, `

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-08-02 Thread Сергей Цыпанов
On Sun, 4 Jul 2021 21:35:31 GMT, Сергей Цыпанов wrote: >> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` >> and `Float` in their implementations of `Object.toString()` delegate to own >> utility `toString(primitive)` methods. >> >> Unlike those, `Boolean`, `Byte`, `

Re: RFR: 8269665: Clean-up toString() methods of some primitive wrappers [v2]

2021-07-04 Thread Сергей Цыпанов
> As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` and > `Float` in their implementations of `Object.toString()` delegate to own > utility `toString(primitive)` methods. > > Unlike those, `Boolean`, `Byte`, `Character` and `Short` just duplicate the > contents of utilit

RFR: 8269665: Clean-up toString() methods of some primitive wrappers

2021-06-30 Thread Сергей Цыпанов
As of JDK 17 some of primitive wrappers, e.g. `Long`, `Integer`, `Double` and `Float` in their implementations of `Object.toString()` delegate to own utility `toString(primitive)` methods. Unlike those, `Boolean`, `Byte`, `Character` and `Short` just duplicate the contents of utility methods in