NetBeans IDE 7.2: FindBugs Integration

Silent movie, 1 1/2 minutes in length.



nice feature. Can you explain the difference with SQE plugin which I'm already using in 7.1 ?


Posted by Gualtiero on May 03, 2012 at 04:58 AM PDT #

More interesting is showing how to evaluate warnings quickly and either fix them (if real bugs) or suppress them (if not).

Posted by Jesse Glick on May 03, 2012 at 07:30 AM PDT #

Do I need a plugin to use this feature? I have a clean install of Netbeans 7.1.2 and can't find this feauture.

Posted by icarus on May 04, 2012 at 01:28 AM PDT #

Please read the subject line of this blog entry again. It says 7.2. That's why you can't find anything about it in 7.1.2, because it is part of the next release.

Posted by Geertjan on May 04, 2012 at 02:54 AM PDT #

Hi Geertjan, I as Gualtiero am also curious, do we no longer need to install the SQE plugin for FindBugs support? Does NB7.2 also come with PMD support?

I'm also interested if the plugin behaves the same as the SQE one, for me at least it doesn't seem to recognise when I turn off rules or when I select the ignore function from the gutter menu. Also I haven't (yet) found a way to clear all findings from the editor windows. Have these been addressed in the integrated version?

Posted by Brett Ryan on May 09, 2012 at 05:37 AM PDT #

Will there be option to synchronize "false positives" with i.e. Sonar?

Posted by guest on May 09, 2012 at 07:11 AM PDT #

Is it Findbugs 2.0 or some older version? Also +1 for Checkstyle and PMD integration.

Posted by Pavel Cibulka on May 10, 2012 at 12:43 AM PDT #

I can't get it to work :-(. In both 7.2 Beta and RC 1 it basically finds nothing properly because no rules are active in the default setup.

However when I try to define a strict setup and configure all the rules, it bombs out during inspection and sends a report to

Back to 7.1 for me

Posted by Henrik on July 01, 2012 at 01:48 AM PDT #

So FindBugs is working for you in 7.1?!

Posted by Geertjan on July 01, 2012 at 04:30 AM PDT #

Thanks for sharing this information, Geertjan! I'm wondering how a custom FindBug configuration could be distributed within a team of developers?

Posted by guest on August 16, 2012 at 08:53 AM PDT #

I applaud this work. However, this is a lot slower than the SQE plugin, and the UI is much, much harder to use. I am therefore going back to using SQE.

a) The tree navigation to get to the actual bugs is 7 levels deep before I get to something clickable to jump to the source. In SQE, it's 3 or 4 levels, which is still too many. 2 would be appropriate. See the demo findbugs UI for a good example of how to categorize bugs.

b) I don't seem to be able to scan and reload findbugs warnings for a single project, only for all open projects.

c) I can't easily categorize bugs. By source package is a totally useless structure. I'd like them by bug type at top level, with the next level being instances of the bug.

Posted by guest on October 14, 2012 at 02:06 PM PDT #

There's an icon in the Results window that lets you switch to a different view where the found bugs are categorized based on FindBugs categories. And if you have another look at the Inspect dialog, you'll see that you can set the scope.

Posted by Geertjan on October 14, 2012 at 02:57 PM PDT #

Sorry, I didn't mean Results window. I meant the Inspector Window. You'll find a button there with the tooltip "Categorize".

Posted by Geertjan on October 14, 2012 at 03:01 PM PDT #

Is there a site where there is discussion about this? I'd like the findbugs codes (e.g. WMI_WRONG_MAP_ITERATOR) to be displayed as well, and it would be nice if I could point to the same excludes file where I run findbugs nightly.

Posted by Jeremy on August 31, 2013 at 06:04 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.


« July 2016