PMD Results

The following document contains the results of PMD 5.0.2.

Files

org/andromda/maven/plugin/translationlibrary/TranslationLibraryTestFormatter.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 25
Private field 'report' could be made final; it is only initialized in the declaration or constructor. 30
Found non-transient, non-static member. Please mark as transient or provide accessors. 30
Private field 'reportWriter' could be made final; it is only initialized in the declaration or constructor. 35
Found non-transient, non-static member. Please mark as transient or provide accessors. 35
Avoid using redundant field initializer for 'numberOfErrors' 60
Found non-transient, non-static member. Please mark as transient or provide accessors. 60
Parameter 'test' is not assigned and could be declared final 66
Parameter 'throwable' is not assigned and could be declared final 67
Avoid using redundant field initializer for 'numberOfFailures' 78
Found non-transient, non-static member. Please mark as transient or provide accessors. 78
Parameter 'test' is not assigned and could be declared final 84
Parameter 'failure' is not assigned and could be declared final 85
Parameter 'test' is not assigned and could be declared final 96
Document empty method 97 - 98
Avoid using redundant field initializer for 'numberOfTests' 103
Found non-transient, non-static member. Please mark as transient or provide accessors. 103
Parameter 'test' is not assigned and could be declared final 108
Found non-transient, non-static member. Please mark as transient or provide accessors. 116
Avoid using redundant field initializer for 'startTime' 116
Variables that are final and static should be all capitals, 'newLine' is not all capitals. 121
Parameter 'test' is not assigned and could be declared final 145
Parameter 'throwable' is not assigned and could be declared final 146
Found non-transient, non-static member. Please mark as transient or provide accessors. 153
Private field 'failures' could be made final; it is only initialized in the declaration or constructor. 153
Use explicit scoping instead of the default package private level 161 - 204
Useless parentheses. 163
StringBuffer constructor is initialized with size 16, but has at least 40 characters appended. 164
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 165
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 166
Avoid throwing raw exception types. 200
Use explicit scoping instead of the default package private level 211 - 212
Found non-transient, non-static member. Please mark as transient or provide accessors. 212
Found non-transient, non-static member. Please mark as transient or provide accessors. 213
Use explicit scoping instead of the default package private level 213

org/andromda/maven/plugin/translationlibrary/TranslationLibraryTestMojo.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 37
Line too long 40
Found non-transient, non-static member. Please mark as transient or provide accessors. 45
Found non-transient, non-static member. Please mark as transient or provide accessors. 52
Found non-transient, non-static member. Please mark as transient or provide accessors. 61
Found non-transient, non-static member. Please mark as transient or provide accessors. 69
Found non-transient, non-static member. Please mark as transient or provide accessors. 76
Found non-transient, non-static member. Please mark as transient or provide accessors. 81
Found non-transient, non-static member. Please mark as transient or provide accessors. 91
Found non-transient, non-static member. Please mark as transient or provide accessors. 98
Found non-transient, non-static member. Please mark as transient or provide accessors. 107
Found non-transient, non-static member. Please mark as transient or provide accessors. 114
Found non-transient, non-static member. Please mark as transient or provide accessors. 121
Avoid if (x != y) ..; else ..; 129 - 196
A catch statement should never catch throwable since it includes errors. 173
An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type. 175