findbugs
detecting race condition using findbugs or another analysis tool
Below bean is not thread-safe: method addIfNotExist is not synchronized, so it is possible that the same term gets added twice because of race condition. I annotated the class using JCIP annotation @T[详细]
2023-02-22 19:20 分类:问答Configure the ext-mail of hudson
I have a grails project and I use hudson to follow different analysis. I want to send the report analysis (cobertura, codenarc, findbug) to the developer. However, I don\'t know how to use hudson\'s e[详细]
2023-02-21 14:43 分类:问答Suppressing Java Findbugs error (EI_EXPOSE_REP)
I have a Java gettor method that looks like the foll开发者_开发问答owing: import java.util.Date;[详细]
2023-02-20 17:13 分类:问答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 proposes the use of interfaces so i wonder if someone has any good experie开发者_Pytho[详细]
2023-02-20 16:10 分类:问答Possible FindBugs false positive of UL_UNRELEASED_LOCK_EXCEPTION_PATH?
I have code like this: public class Thingy { private final Lock lock = new ReentrantLock(); private boolean shutdown;[详细]
2023-02-19 11:39 分类:问答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 at my code I don\'t quite understand what is wrong with it, can a开发者_如何转开发nyone sugges[详细]
2023-02-17 01:09 分类:问答Finetuning FindBugs ant task in Eclipse
Within eclipse I am able to define detector ids and bug categories to be reported from the preference page.[详细]
2023-02-16 07:20 分类:问答What levels should static analyzers analyze?
I\'ve noticed that some static analyzers operate on source code, while others operate on bytecode (e.g., FindBugs). I\'m sure there are even some that work on object code.[详细]
2023-02-14 22:15 分类:问答How to fix Naked notify warning of FindBugs?
I have Naked notify warning of FindBugs. The below is my code. synchronized (this) { this.notify(); } The \"this\" is \"public class Controller extends Thread\".[详细]
2023-02-14 15:44 分类:问答findbugs-maven-plugin throws OutOfMemoryError
findbugs-maven-plugin throws OutOfMemoryError, how to fix this java.lang.OutOfMemoryError: Java heap space[详细]
2023-02-07 06:31 分类:问答
加载中,请稍侯......