Rule Severity
AbstractClassWithoutAbstractMethod  

This abstract class does not have any abstract methods

Warning
AccessorClassGeneration  

Avoid instantiation through private constructors from outside of the constructor's class.

Warning
AccessorMethodGeneration  

Avoid autogenerated methods to access private fields and methods of inner / outer classes

Warning
ArrayIsStoredDirectly  

The user-supplied array ''{0}'' is stored directly.

Warning
AvoidPrintStackTrace  

Avoid printStackTrace(); use a logger call instead.

Warning
AvoidReassigningParameters  

Avoid reassigning parameters such as ''{0}''

Critical
AvoidStringBufferField  

StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time).

Warning
AvoidUsingHardCodedIP  

Do not hard code the IP address ${variableName}

Warning
CheckResultSet  

Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet.

Warning
ConstantsInInterface  

Avoid constants in interfaces. Interfaces define types, constants are implementation details better placed in classes or enums. See Effective Java, item 19.

Warning
DefaultLabelNotLastInSwitchStmt  

The default label should be the last label in a switch statement

Warning
ForLoopCanBeForeach  

This 'for' loop can be replaced by a 'foreach' loop

Warning
GuardLogStatement  

There is log block not surrounded by if

Critical
JUnit4SuitesShouldUseSuiteAnnotation  

JUnit 4 indicates test suites via annotations, not the suite method.

Warning
JUnit4TestShouldUseAfterAnnotation  

JUnit 4 tests that clean up tests should use the @After annotation

Warning
JUnit4TestShouldUseBeforeAnnotation  

JUnit 4 tests that set up tests should use the @Before annotation

Warning
JUnit4TestShouldUseTestAnnotation  

JUnit 4 tests that execute tests should use the @Test annotation

Warning
JUnitAssertionsShouldIncludeMessage  

JUnit assertions should include a message

Warning
JUnitTestContainsTooManyAsserts  

JUnit tests should not contain more than ${maximumAsserts} assert(s).

Warning
JUnitTestsShouldIncludeAssert  

JUnit tests should include assert() or fail()

Warning
JUnitUseExpected  

In JUnit4, use the @Test(expected) annotation to denote tests that should throw exceptions

Warning
LooseCoupling  

Avoid using implementation types like ''{0}''; use the interface instead

Warning
MethodReturnsInternalArray  

Returning ''{0}'' may expose an internal array.

Warning
MissingOverride  

The method ''{0}'' is missing an @Override annotation.

Warning
OneDeclarationPerLine  

Use one line for each declaration, it enhances code readability.

Warning
PositionLiteralsFirstInCaseInsensitiveComparisons  

Position literals first in String comparisons for EqualsIgnoreCase

Warning
PositionLiteralsFirstInComparisons  

Position literals first in String comparisons

Warning
PreserveStackTrace  

New exception is thrown in catch block, original stack trace may be lost

Warning
ReplaceEnumerationWithIterator  

Consider replacing this Enumeration with the newer java.util.Iterator

Warning
ReplaceHashtableWithMap  

Consider replacing this Hashtable with the newer java.util.Map

Warning
ReplaceVectorWithList  

Consider replacing this Vector with the newer java.util.List

Warning
SwitchStmtsShouldHaveDefault  

Switch statements should have a default label

Warning
SystemPrintln  

{0} is used

Critical
UnusedFormalParameter  

Avoid unused {0} parameters such as ''{1}''.

Warning
UnusedImports  

Avoid unused imports such as ''{0}''

Warning
UnusedLocalVariable  

Avoid unused local variables such as ''{0}''.

Warning
UnusedPrivateField  

Avoid unused private fields such as ''{0}''.

Warning
UnusedPrivateMethod  

Avoid unused private methods such as ''{0}''.

Warning
UseAssertEqualsInsteadOfAssertTrue  

Use assertEquals(x, y) instead of assertTrue(x.equals(y))

Warning
UseAssertNullInsteadOfAssertTrue  

Use assertNull(x) instead of assertTrue(x==null), or assertNotNull(x) vs assertFalse(x==null)

Warning
UseAssertSameInsteadOfAssertTrue  

Use assertSame(x, y) instead of assertTrue(x==y), or assertNotSame(x,y) vs assertFalse(x==y)

Warning
UseAssertTrueInsteadOfAssertEquals  

Use assertTrue(x)/assertFalse(x) instead of assertEquals(true, x)/assertEquals(false, x) or assertEquals(Boolean.TRUE, x)/assertEquals(Boolean.FALSE, x).

Warning
UseCollectionIsEmpty  

Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty()

Warning
UseVarargs  

Consider using varargs for methods or constructors which take an array the last parameter.

Warning