Top "Findbugs" questions

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

FindBugs IDEA - ClassNotFoundException com.google.wireless.android.sdk.stats.IntellijIndexingStats

FindBugs IDEA v1.0.1 Android Studio 3.4 I get this error when running FindBugs. I don't use com.google.wireless.android.sdk …

android findbugs
What are the differences between PMD and FindBugs?

There was a question comparing PMD and CheckStyle. However, I can't find a nice breakdown on the differences/similarities between …

java static-analysis findbugs pmd
What's the best way to fix this 'write to static field from instance method' findbugs warning?

I have a class that looks similar to this, and findbugz is complaining about the 'write to the static field …

java findbugs
How to suppress FindBugs warnings for fields or local variables

I would like to suppress FindBugs warnings for specific fields or local variables. FindBugs documents that the Target can be …

java findbugs suppress-warnings
Easy way find uninitialized member variables

I am looking for an easy way to find uninitialized class member variables. Finding them in either runtime or compile …

c++ findbugs initialization
Reliance on default encoding, what should I use and why?

FindBugs reports a bug: Reliance on default encoding Found a call to a method which will perform a byte to …

java encoding internationalization findbugs
Incorrect lazy initialization

Findbug told me that I use incorrect lazy initialization. public static Object getInstance() { if (instance != null) { return instance; } instance = new …

java findbugs
FindBugs warning: Inefficient use of keySet iterator instead of entrySet iterator

Please refer to the following method : public Set<LIMSGridCell> getCellsInColumn(String columnIndex){ Map<String,LIMSGridCell> cellsMap = …

java performance findbugs
How to export FindBugs/PMD/Checkstyle rules from Sonar and import into Netbeans

My company has sonar set up to with various plugins (PMD, FindBugs, CheckStyle), and although it is very useful as …

netbeans findbugs sonarqube checkstyle pmd
@GuardedBy annotation with java.util.concurrent.locks.ReadWriteLock

What is a proper/preferred way to annotate fields that are protected with a ReadWriteLock so that tools like FindBugs …

java concurrency annotations static-analysis findbugs