Top "Findbugs" questions

A program which uses static analysis to look for bugs in Java code.

What to import to use @SuppressFBWarnings?

What to import to use SuppressFBWarnings? I installed the findbugs plugin via help / install new software When I type import …

java include findbugs spotbugs
Dealing with a Circular Dependency

I wonder if someone can advise on any good ways to break a circular dependency between 2 classes in Java.FindBugs …

java circular-dependency findbugs spotbugs
Found reliance on default encoding in FileReader

How can we fix the below issue reported by findBugs: Found reliance on default encoding in abc.java : new java.…

java findbugs
How to fix the Findbugs issue "Null value is guaranteed to be dereferenced" NP_GUARANTEED_DEREF

Hi I have got some code that is reported as having the NP_GUARANTEED_DEREF issue by Findbugs. Now looking …

java nullpointerexception findbugs dereference correctness
How to generate HTML output using Gradle FindBugs Plugin

Using the Gradle FindBugs Plugin, how can I generate the output in HTML format?? The FindBugsExtension do have some config …

html gradle findbugs
GC overhead Limit exceeded while running sonar runner

I am getting OutOfMemoryException while performing sonar analysis on my project. Below is the stack trace: 14:55:55.433 DEBUG - Release semaphore …

java memory-management garbage-collection sonarqube findbugs
Any open-source software that is similar to Fortify?

I have been using PMD and Findbug for my application but fortify managed to detect some of the security vulnerabilities …

security open-source findbugs pmd fortify
javax.annotation.Nonnull vs assert

I'm using Findbugs and javax.annotation.Nonnull on method parameters. On private methods I usually add an assert line to …

java assert findbugs null-check
SonarQube Findbugs "needs sources to be compiled"

I am trying to get SonarQube findbugs working, but when I try to run it I get the error: "Findbugs …

java sonarqube findbugs
findbugs is objecting to anonymous inner class

This code: Set<Map.Entry<String, SSGSession>> theSet = new TreeSet<Map.Entry<String, SSGSession&…

java findbugs sonarqube