-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
None
-
Affects Version/s: 11
-
Component/s: core-libs
-
generic
-
generic
A DESCRIPTION OF THE PROBLEM :
Objects.nonNull(true) .Here How can a Boolean value be checked in Objects.nonNull class?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Objects.nonNull(true)
String checkString = null;
Objects.nonNull(checkString!=null)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Objects.nonNull(true) => it should throw error
ACTUAL -
It accepts the case
---------- BEGIN SOURCE ----------
Objects.nonNull(true)
String checkString = null;
Objects.nonNull(checkString!=null)
---------- END SOURCE ----------
FREQUENCY : always
Objects.nonNull(true) .Here How can a Boolean value be checked in Objects.nonNull class?
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Objects.nonNull(true)
String checkString = null;
Objects.nonNull(checkString!=null)
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Objects.nonNull(true) => it should throw error
ACTUAL -
It accepts the case
---------- BEGIN SOURCE ----------
Objects.nonNull(true)
String checkString = null;
Objects.nonNull(checkString!=null)
---------- END SOURCE ----------
FREQUENCY : always