Details
-
Bug
-
Status: Resolved
-
P4
-
Resolution: Fixed
-
None
-
None
-
b14
Description
VarHandles uses Objects.nonNull(foo) like this in various places:
public static VarHandle insertCoordinates(VarHandle target, int pos, Object... values) {
Objects.nonNull(target);
Objects.nonNull(values);
nonNull is a boolean predicate (return arg != null;). It appears likely the intent was to call Objects.requireNonNull as a precondition check here.
public static VarHandle insertCoordinates(VarHandle target, int pos, Object... values) {
Objects.nonNull(target);
Objects.nonNull(values);
nonNull is a boolean predicate (return arg != null;). It appears likely the intent was to call Objects.requireNonNull as a precondition check here.