WALA/com.ibm.wala.util/.settings
Ben Liblit cb6d3b282a Fix Eclipse warnings about redundant null checks and assignments
Most of these are harmless, and are best fixed simply by removing the
redundant check or assignment.  The one in FlowType.compareBlocks,
however, revealed a real problem.  This code checks for nullness of
`a` *after* having called a method on `a`.  Assuming that `a` can
indeed be `null` here, the check must come first to avoid a
`NullPointerException`.

In several places, I saw code of this form:

   if (thing == null)
     assert thing != null : ... ;

I honestly don't understand the purpose of that `if` statement.  Why
not just have the `assert` statement there directly?  I removed the
seemingly irrelevant `if` statements in these cases, but if this is
some intentional pattern, please explain it to me.

In a few places where nullness is statically known but non-obvious,
add assert statements to point out what's going on to help future
developers.

Upgrade future such warnings to errors to keep us moving in a cleaner
direction.
2017-08-15 09:11:29 -07:00
..
org.eclipse.jdt.core.prefs Fix Eclipse warnings about redundant null checks and assignments 2017-08-15 09:11:29 -07:00
org.eclipse.jdt.launching.prefs remove warnings from com.ibm.wala.util 2013-03-12 00:55:26 +01:00
org.eclipse.jdt.ui.prefs fix some compiler warnings. no semantic changes 2011-02-03 15:15:56 +00:00
org.eclipse.pde.prefs Disable Eclipse warnings about missing version constraints 2017-03-28 20:37:41 -05:00
org.eclipse.wst.validation.prefs Merge branch 'master' into warning-fixes-xml-validation 2016-11-29 10:08:00 -06:00