This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207814

Summary: Integrate FindBugs
Product: java Reporter: Jan Lahoda <jlahoda>
Component: SourceAssignee: Jan Lahoda <jlahoda>
Status: RESOLVED FIXED    
Severity: normal CC: anebuzelsky, crazyjavahacking, ecerichter, mklaehn, sreimers
Priority: P1 Keywords: PLAN
Version: 7.2   
Hardware: PC   
OS: Linux   
Issue Type: TASK Exception Reporter:

Description Jan Lahoda 2012-01-27 09:16:59 UTC
The FindBugs static code analysis tool should be integrated into NetBeans.
Comment 1 crazyjavahacking 2012-02-02 09:22:48 UTC
That is a really good idea. Because FindBugs already contains many usefull hints for example bunch of NullPointer dereference problems.

What about current hints that are already implemented in NetBeans but are part of FindBugs as well? Will those be removed and used from FindBugs instead?

What about connection to AST transformations?

Will those hints be treated as normal hints with optional refactorings or will they have independent UI?
Comment 2 ecerichter 2012-11-13 13:46:40 UTC
Also, there must be a way to update FindBugs without waiting for next release of NetBeans (at least for minor releases/bug fixes of FindBugs).

How to accomplish that without loosing functionality?

I mean, I don't expect that NetBeans automatically adjusts itself to major releases of FindBugs, but there must be a way to install the minor releases.

At this point, I have 7.3 dev build installed with FindBugs 2.0.0, and the latest version in the FindBugs web site is 2.0.1 that has a few bug fixes I would get incorporated.
Comment 3 Jan Lahoda 2012-11-13 14:21:37 UTC
Unfortunately, the "API" provided by FindBugs is not stable, at least as far as I know (and in some cases not sufficient). So as long as NetBeans will be held responsible for FB working or not, I do not see a supported way to allow the user upgrade the FB version used by NetBeans.