Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[stem-dev] Find Bugs

I ran Find Bugs http://findbugs.sourceforge.net/ on the STEM code base and it came up with quite a few things to look at. I entered three new bugs:

https://bugs.eclipse.org/bugs/show_bug.cgi?id=286302
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286296
https://bugs.eclipse.org/bugs/show_bug.cgi?id=286297

as examples of some of the things that could be problems, such as null pointer deferences. There are many more (hundreds) of other warnings from Find Bugs. I've been going through some of them that occur in generated code (mostly) that Find Bugs should ignore. The rest should get similar treatment, either they should be fixed, or they should be inspected and explictly excluded form Find Bugs' attention.

To run Find Bugs, simply right click on a project and select "Find Bugs->Find Bugs". There is a Find Bugs view that lists everything it finds. Bug reports can be suppressed by entering the bug's abbreviation in ".settings/findbugs.exclude.xml" (See http://findbugs.sourceforge.net/manual/filter.html#d0e1752) See this file and the project properties settings for org.eclipse.stem.core. Not all of the projects are configured yet, but you can run Find Bugs on them regardless.

Find Bugs can be installed as an Eclipse Plugin from the Find Bugs Eclipse update site: http://findbugs.cs.umd.edu/eclipse

Dan


Back to the top