Questions tagged [findbugs]

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

FindBugs is an open source program created by Bill Pugh and David Hovemeyer which looks for bugs in Java code. It uses static analysis to identify hundreds of different potential types of errors in Java programs. FindBugs operates on Java bytecode, rather than source code. The software is distributed as a stand-alone GUI application. There are also plug-ins available for Eclipse, Netbeans, IntelliJ IDEA, and Hudson.

Related Links:

1001 questions
-1
votes
5 answers

Static Code Analysis Tools -

How Many of you use static code analysis tools during development and what is the amount of false positives you experience with the tool you use? This is for a research.
Adithya
  • 241
  • 3
  • 16
-1
votes
1 answer

Is metric tool in eclipse counting ternary operator complexity?

I am using sonarQube(third party analyzer-Findbug) at server and metric tool for calculating cyclomatic complexity at local computer. SonarQube is calculating the complexity for the following code but metric is not counting it.I am using metric…
rushang patel
  • 115
  • 2
  • 10
-1
votes
1 answer

Using FindBugs in eclipse

I have been using Find Bugs in Eclipse and I can not figure out why some of the bugs are coming up or how to fix them. Any ideas or help would be great! The first bug is (Bug: Exception is caught when Exception is not thrown in…
user3320746
  • 7
  • 1
  • 3
-1
votes
1 answer

Google rules for FindBugs

I noticed that Google uses/supports FindBugs. Does anybody know about a rules file they use, and can share a link? Similarly to their checkstyle rules, maybe there would be something for FindBugs?
wujek
  • 10,112
  • 12
  • 52
  • 88
-1
votes
1 answer

How to achieve hard-code voilations with CodePro?

I have to check some voilations like this if(emp.companyName="MyCompany") ie. Here there should not "MyComapany" hard-code in expression or condition checking. which rule of CodePro do this.
Sun
  • 3,444
  • 7
  • 53
  • 83
-1
votes
1 answer

Why Findbugs cannot detect my code error?

I have read the bug detectors in findbugs website, http://findbugs.sourceforge.net/bugDescriptions.html I want to write a test code and use Findbugs to detect the REC error. But the findbugs cannot. Why? Could you help me to solve…
user3408277
  • 11
  • 1
  • 1
-1
votes
1 answer

what is the internal working of code quality check tools?

On which principal do the code quality check tools work? For example PMD, FindBugs, CheckStyle etc. Do they use some kind of computer science principals?
Sam
  • 2,352
  • 4
  • 32
  • 45
-3
votes
1 answer

fix Possible null pointer dereference

I have the following codes but fails when using findbugs. protected void writeStream(final InputStream inputStream, final Path destinationFile) throws IOException { final Path parentDirectory = destinationFile.getParent(); Path tempFile…
chrisTina
  • 2,298
  • 9
  • 40
  • 74
-3
votes
1 answer

Invoke Findbugs in Android Buck Build

I'm migrating my android project to build with Buck (from Gradle). What's the recommended way to run Findbugs in a Buck build? I couldn't find examples online for how to set that up.
rmahfoud
  • 41
  • 1
  • 4
-3
votes
2 answers

Findbugs maven scan new code only

I am looking for a way to scan only new code of a project with the findbugs plugin for maven but I can't seem to figure out how.
pdwo
  • 1
-4
votes
1 answer

Findbugs non-transient non-serializable instance field in a utility class

Findbugs returns a warning for the class below: Class ServiceUtils$1 defines non-transient non-serializable instance field val$request Bug type SE_BAD_FIELD (click for details) In class ServiceUtils$1 Field ServiceUtils$1.val$request In…
CrazyDoggg
  • 463
  • 5
  • 16
1 2 3
66
67