SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 3.1.8
Threshold is low
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
17 |
9 |
0 |
0 |
org.sw4j.examples.bitoperation.CheckSign
Bug |
Category |
Details |
Line |
Priority |
Check for sign of bitwise operation in org.sw4j.examples.bitoperation.CheckSign.bug(int) |
BAD_PRACTICE |
BIT_SIGNED_CHECK |
31 |
Medium |
org.sw4j.examples.clone.NoClone
Bug |
Category |
Details |
Line |
Priority |
Class org.sw4j.examples.clone.NoClone implements Cloneable but does not define or use clone method |
BAD_PRACTICE |
CN_IDIOM |
22 |
Medium |
org.sw4j.examples.clone.NoCloneable
org.sw4j.examples.clone.NoSuperClone
Bug |
Category |
Details |
Line |
Priority |
org.sw4j.examples.clone.NoSuperClone.clone() does not call super.clone() |
BAD_PRACTICE |
CN_IDIOM_NO_SUPER_CALL |
26-27 |
Medium |
org.sw4j.examples.compare.Covariant
Bug |
Category |
Details |
Line |
Priority |
Abstract org.sw4j.examples.compare.Covariant defines compareTo(Covariant) method |
BAD_PRACTICE |
CO_ABSTRACT_SELF |
22 |
Low |
org.sw4j.examples.equals.EqualsAssume
org.sw4j.examples.nullpointer.BooleanReturnsNull
Bug |
Category |
Details |
Line |
Priority |
org.sw4j.examples.nullpointer.BooleanReturnsNull.booleanMethod() has Boolean return type and returns explicit null |
BAD_PRACTICE |
NP_BOOLEAN_RETURN_NULL |
27 |
Medium |
org.sw4j.examples.numbers.KnownConstant
org.sw4j.examples.swing.BugSwingThread
Bug |
Category |
Details |
Line |
Priority |
Call to swing method in org.sw4j.examples.swing.BugSwingThread.main(String[]) needs to be performed in Swing event thread |
BAD_PRACTICE |
SW_SWING_METHODS_INVOKED_IN_SWING_THREAD |
30 |
Low |