PMD Results

The following document contains the results of PMD 5.0.5.

Files

org/andromda/maven/plugin/bootstrap/install/BootstrapInstallMojo.java

Violation Line
Found non-transient, non-static member. Please mark as transient or provide accessors. 41
Found non-transient, non-static member. Please mark as transient or provide accessors. 48
Found non-transient, non-static member. Please mark as transient or provide accessors. 54
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. 77
Local variable 'artifact' could be declared final 119
The String literal "Installing bootstrap artifact: " appears 5 times in this file; the first occurrence is on line 130 130
A catch statement should never catch throwable since it includes errors. 160
Parameter 'object' is not assigned and could be declared final 205
Local variable 'dependency' could be declared final 207
Local variable 'artifactFile' could be declared final 248
A method should have only one exit point, and that should be the last statement in the method 252
Avoid if (x != y) ..; else ..; 254
Local variable 'versionIndex' could be declared final 255
Local variable 'extensionIndex' could be declared final 259
Local variable 'qualifiedFile' could be declared final 263
A method should have only one exit point, and that should be the last statement in the method 267

org/andromda/maven/plugin/bootstrap/install/HelpMojo.java

Violation Line
Comment is too large: Line too long 11
Found non-transient, non-static member. Please mark as transient or provide accessors. 27
Found non-transient, non-static member. Please mark as transient or provide accessors. 34
Found non-transient, non-static member. Please mark as transient or provide accessors. 41
Found non-transient, non-static member. Please mark as transient or provide accessors. 48
The method execute() has an NPath complexity of 600 52139
Local variable 'sb' could be declared final 66
Avoid variables with short names like sb 66
The String literal "" appears 13 times in this file; the first occurrence is on line 69 69
Parameter 'repeat' is not assigned and could be declared final 150
Parameter 'str' is not assigned and could be declared final 150
Local variable 'buffer' could be declared final 152
Parameter 'sb' is not assigned and could be declared final 170
Parameter 'indent' is not assigned and could be declared final 170
Parameter 'description' is not assigned and could be declared final 170
Avoid variables with short names like sb 170
Local variable 'it' could be declared final 172
Parameter 'lineLength' is not assigned and could be declared final 188
Parameter 'text' is not assigned and could be declared final 188
Parameter 'indent' is not assigned and could be declared final 188
Parameter 'indentSize' is not assigned and could be declared final 188
Local variable 'lines' could be declared final 190
Local variable 'ind' could be declared final 192
Local variable 'plainLines' could be declared final 193
Parameter 'lineLength' is not assigned and could be declared final 210
Parameter 'indentSize' is not assigned and could be declared final 210
Parameter 'lines' is not assigned and could be declared final 210
Parameter 'line' is not assigned and could be declared final 210
Local variable 'lineIndent' could be declared final 212
Local variable 'buf' could be declared final 213
Local variable 'tokens' could be declared final 214
Local variable 'token' could be declared final 217
Local variable 'c' could be declared final 233
Avoid variables with short names like c 233
Parameter 'line' is not assigned and could be declared final 257