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

Bug Category Details Line Priority
org.sw4j.examples.clone.NoCloneable defines clone() but doesn't implement Cloneable BAD_PRACTICE CN_IMPLEMENTS_CLONE_BUT_NOT_CLONEABLE 26 Medium

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

Bug Category Details Line Priority
Equals method for org.sw4j.examples.equals.EqualsAssume assumes the argument is of type EqualsAssume BAD_PRACTICE BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS 27 Medium

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

Bug Category Details Line Priority
Rough value of Math.PI found: 3.141 BAD_PRACTICE CNT_ROUGH_CONSTANT_VALUE 27 Medium

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