RFR: 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs
Justin Lu
duke at openjdk.org
Fri Jan 6 21:54:51 UTC 2023
On Fri, 6 Jan 2023 21:34:00 GMT, Lance Andersen <lancea at openjdk.org> wrote:
>> I think the later, that the value can be true or false. As an example, one value is fine, e.g.
>> {@code setProperty("javax.xml.stream.isRepairingNamespaces", Boolean.TRUE);}
>> or
>> {@code setProperty("javax.xml.stream.isRepairingNamespaces", true);}
>> let autoboxing handle it.
>
> The` true|false` should just be changed to just set the value to _true_ or _false_.
>
> I think `Boolean.TRUE` is fine. If the consensus is to use autoboxing in the example that is fine also.
Thank you Joe and Lance, will replace it with a single value
-------------
PR: https://git.openjdk.org/jdk/pull/11872
More information about the core-libs-dev
mailing list