Top "Findbugs" questions

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

Turning Sonar off for certain code

Is it possible to turn off sonar (www.sonarsource.org) measurements for specific blocks of code, which one doesn't want …

java jenkins sonarqube findbugs
Is there a way to ignore a single FindBugs warning?

With PMD, if you want to ignore a specific warning, you can use // NOPMD to have that line be ignored. …

java warnings findbugs suppress-warnings
Switch without break

I have some switch statement as shown below. Notice there is no break. Findbugs is reporting error on the second …

java switch-statement findbugs
How to handle a Findbugs "Non-transient non-serializable instance field in serializable class"?

Consider the class below. If I run Findbugs against it it will give me an error ("Non-transient non-serializable instance field …

java serialization findbugs
Found reliance on default encoding

I am getting below bug from FindBugs, Found reliance on default encoding in MyClass.print(String): String.getBytes() Method protected …

findbugs
What is the meaning of Possible null pointer dereference in findbug?

I am using Sonar and I have got this kind of violation from it for a peace of my code: …

java find sonarqube findbugs
javax.annotation: @Nullable vs @CheckForNull

What is the difference between the two? Both seem to mean that the value may be null and should be …

java annotations static-analysis findbugs
Is SonarQube Replacement for Checkstyle, PMD, FindBugs?

We are working on a web project from scratch and are looking at the following static code analysis tools. Conventions (…

checkstyle findbugs sonarqube pmd
ResultSet not closed when connection closed?

I've been doing code review (mostly using tools like FindBugs) of one of our pet projects and FindBugs marked following …

java jdbc findbugs
Checkstyle vs. PMD

We are introducing static analysis tools into the build system for our Java product. We are using Maven2 so Checkstyle …

java static-analysis findbugs checkstyle pmd