You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps this checker should have a parameter like allowNullChecks, that would permit testing for nulls, but would complain if it finds null in an assignment.
The text was updated successfully, but these errors were encountered:
The NullChecker takes a parameter allowNullChecks (which defaults to true)
indicating that 'null' is tolerated in the code if it is preceded by
equality '==' or inequality '!='.
Added a test which covers both above cases.
The
NullChecker
currently complains about anynull
it finds in the codebase. However, even Scala's creator advises checking for nulls withx != null
.Perhaps this checker should have a parameter like
allowNullChecks
, that would permit testing for nulls, but would complain if it findsnull
in an assignment.The text was updated successfully, but these errors were encountered: