RFR : 8013712 : (XS) Add Objects.nonNull and Objects.isNull
Jeff Hain
jeffhain at rocketmail.com
Thu May 2 11:14:06 UTC 2013
Hello.
nonNull could be renamed into isNonNull,
else people might use it instead of requireNonNull,
especially if they are already used to a pre-Java 7
requireNonNull that would be called nonNull.
(example:
http://grokbase.com/p/openjdk/core-libs-dev/111tbha823/code-review-7012540-java-util-objects-nonnull-incorrectly-named
)
It would also be more consistent with isNull.
-Jeff
More information about the core-libs-dev
mailing list