RFR: 8299502: Usage of constructors of primitive wrapper classes should be avoided in javax.xml API docs [v2]

Justin Lu duke at openjdk.org
Wed Jan 11 18:56:21 UTC 2023


On Wed, 11 Jan 2023 18:41:59 GMT, altrisi <duke at openjdk.org> wrote:

> Why not just `true` and `false`? Autoboxing handles that.

That was a topic that was talked about in [8299498](https://github.com/openjdk/jdk/pull/11912). It seemed that there was a consensus from a documentation standpoint that it was more clear to use the wrapper methods/fields (valueOf() or in this case Boolean.TRUE)

-------------

PR: https://git.openjdk.org/jdk/pull/11872


More information about the core-libs-dev mailing list