RFR: 8299500: Usage of constructors of primitive wrapper classes should be avoided in java.text API docs [v2]
Justin Lu
duke at openjdk.org
Fri Jan 6 18:51:13 UTC 2023
On Fri, 6 Jan 2023 18:36:08 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Justin Lu has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Remove objs=null
>
> src/java.base/share/classes/java/text/MessageFormat.java line 313:
>
>> 311: * String result = mf.format( objs );
>> 312: * // result now equals "3.14, 3.1"
>> 313: * objs = null;
>
> Although this is not related to this fix, this line `objs = null` is not needed (and is confusing as an example snippet). I'd remove this.
Makes sense, just got rid of it
-------------
PR: https://git.openjdk.org/jdk/pull/11884
More information about the core-libs-dev
mailing list