Where possible this commit switches from Boolean class parameters to primitive booleans.
The problem with Boolean is that it introduces 3 states, TRUE, FALSE and null.
Where the contract has a Nullable requirement, I have updated the if statements, as if (obj.nullableMember()) { will throw a null pointer exception if the Boolean result is null. The safe replacement is if (Boolean.TRUE.equals(obj.nullableMember())) {
Where possible this commit switches from
Boolean
class parameters to primitive booleans.The problem with
Boolean
is that it introduces 3 states,TRUE
,FALSE
andnull
.Where the contract has a Nullable requirement, I have updated the
if
statements, asif (obj.nullableMember()) {
will throw a null pointer exception if the Boolean result isnull
. The safe replacement isif (Boolean.TRUE.equals(obj.nullableMember())) {