Commit Graph

28 Commits

Author SHA1 Message Date
Ben Liblit e1d2fa9850 Suppress Eclipse warnings about potentially-static methods
The "potentially" qualifier is here because these methods are visible
outside the WALA source tree.  These methods may seem OK to be static
based on the code we have here, but we have no way of knowing whether
third-party code expected to be able to subclass and override.  I'm
going to play it safe and assume that we want to allow that.

Note that we are still allowing Eclipse warnings about methods that
can *definitely* be declared static; a different configuration option
controls these.  For private methods, final methods, and methods in
final classes, if the code seems static-safe based on what we have
here, then that's good enough: we don't need to worry about
third-party overrides.
2017-06-07 08:29:23 -07:00
Manu Sridharan b82e808b32 Merge pull request #156 from liblit/warning-fixes-unnecessary-code-uncontroversial
Fix 265 Eclipse warnings about unnecessary code
2017-03-23 17:48:10 -07:00
Ben Liblit 1bb3d827c4 Turn off Eclipse warnings about unused caught-exception parameters
Manu requested that we use this approach instead of adding
`@SuppressWarnings("unused")` at each affected catch block.  That
seems reasonable to me, given the large number of such warnings and
the lack of likely harm from ignoring such caught exceptions.
2017-03-23 16:39:58 -05:00
Ben Liblit ea39ad647e Don't warn about Javadoc tags with missing descriptions
These changes turn off Eclipse warnings for Javadoc tags without
descriptions.  In some subprojects, we turn these off entirely.  In
others, leave on missing-descrption checks for "@return" tags only.

We don't turn this warning off in all projects.  Rather, we turn it
off only in projects that were producing at least one such warning.
In other words, if a project was already completely "clean" with
respect to this warning, then we leave this warning enabled for that
project.

Turning off these warnings is a partial declaration of Javadoc
bankruptcy.  In an ideal world, we would enable and fix all of these
warnings.  However, there are 576 of them.  Apparently the WALA team's
implicit coding style says that omitting descriptions is OK.  If
there's no intent to systematically add descriptions, then we may as
well turn off these warnings so that we can see other warnings that we
may want to fix.
2017-03-22 20:39:36 -05:00
Ben Liblit dace7b709f Ignore missing non-null-by-default annotations in Eclipse
In general, the WALA code base is not really ready for nullness
checking.  It would be nice if we got there some day, but I'm not
planning to take that on now or any time soon.  Until then, it's not
useful to warn about missing @NonNullByDefault declarations on WALA
packages.

See also older commit 7b6811b.
2016-11-26 18:47:35 -06:00
Ben Liblit 7b6811b2dd Ignore potential null accesses in Eclipse
Eclipse Mars Service Release 2 finds 45 potential null pointer accesses
across WALA's various Eclipse projects. Eclipse ignores these by
default, but any individual user may have changed their personal Eclipse
configuration to treat them as warnings or errors. Thus, some people
will find that the code builds while others find that it fails. Better
to explicitly use a known-good configuration.

In the long run someone should inspect these cases one-by-one and fix
them where appropriate. But that is probably better managed as part of a
larger effort to tidy up nulls in WALA. I'm not planning to take that on
now or any time soon, though, so this is a better setup for now.
2016-06-27 13:11:42 -05:00
Julian Dolby 774be73672 Merge https://github.com/jgf/wala-mirror 2014-09-11 10:43:13 -04:00
Manu Sridharan c006dbcdd4 fix Shrike to depend on Java 7 2014-08-28 10:17:03 -07:00
Juergen Graf cdaaddf88b Merge branch 'wala' into master 2013-07-02 14:23:24 +02:00
Manu Sridharan 00eb1d2bd2 Set all projects to build against Java 6; no semantic change. Fixes #20 2013-04-10 16:01:27 -07:00
Juergen Graf 397654729d remove warnings from com.ibm.wala.shrike 2013-03-12 00:57:31 +01:00
sjfink 3a49f17ebc update code formatting for Eclipse 3.6
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@4048 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2011-02-03 15:14:47 +00:00
sjfink e89a1ee708 force Eclipse compiler to generate 1.5 bytecode for wala.shrike and wala.ide projects
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3737 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2009-07-24 18:44:37 +00:00
msridhar1 c461057ece change to 1.5 execution environment; fix some warnings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3102 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-12-01 21:50:54 +00:00
sjfink 66884c2c37 fix Eclipse 3.4.1 compiler warnings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@3100 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-12-01 19:40:43 +00:00
sjfink 6efd98c8ce tweak code format
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2942 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-07-04 01:56:31 +00:00
sjfink b7b9575853 tweak code format
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2909 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-06-25 14:52:04 +00:00
sjfink 9f5ea66719 tweak code format
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2368 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-11 16:50:59 +00:00
sjfink 10177ec1e5 tweak code formatting for enums
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2336 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-10 16:26:17 +00:00
sjfink 0ec445aed0 tweak code formatting template
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2261 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2008-01-03 16:30:56 +00:00
sjfink e1ff8cd093 revert code compliance level to 5.0
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@2201 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-12-17 18:47:30 +00:00
sjfink 23eadb80a5 bump up source level to 6.0
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1849 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-10-11 14:25:49 +00:00
sjfink ea9c4a2f93 eliminate some use of raw types
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1206 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 20:52:57 +00:00
sjfink e8e0ae5d30 mostly clean up old comments.
also rename InferGraphRootsImpl to InferGraphRoots

git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1199 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 18:59:34 +00:00
sjfink 60058dec8b add @Overrides annotations and nuke unnecessary casts
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1198 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-30 15:42:59 +00:00
sjfink 35cd99766d share errors/warnings settings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1082 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-07 13:28:38 +00:00
sjfink 6a3ae893e7 shared code formatter settings
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@1066 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2007-05-07 13:20:57 +00:00
sjfink 68270cad6f mv stuff to trunk
git-svn-id: https://wala.svn.sourceforge.net/svnroot/wala/trunk@492 f5eafffb-2e1d-0410-98e4-8ec43c5233c4
2006-11-22 17:45:24 +00:00