PMD Results

The following document contains the results of PMD 3.9.

Files

org/limmen/crs/Constants.java

ViolationLine
Each class should declare at least one constructor18 - 35

org/limmen/crs/model/Configuration.java

ViolationLine
Overridable method 'setBaseConfiguration' called during object construction71
Parameter 'documentation' is not assigned and could be declared final74
Parameter 'aSectionId' is not assigned and could be declared final79
Parameter 'documentation' is not assigned and could be declared final79
Local variable 'section' could be declared final83
Found 'DU'-anomaly for variable 'aSettingId' (lines '88'-'95').88 - 95
Parameter 'aSectionId' is not assigned and could be declared final88
Parameter 'aSettingId' is not assigned and could be declared final88
Parameter 'documentation' is not assigned and could be declared final88
Local variable 'section' could be declared final92
Parameter 'aSectionId' is not assigned and could be declared final97
Parameter 'newSetting' is not assigned and could be declared final97
Local variable 'section' could be declared final101
These nested if statements could be combined105 - 111
Parameter 'newSectionId' is not assigned and could be declared final117
These nested if statements could be combined123 - 129
Deeply nested if..then statements are hard to read123 - 129
Parameter 'obj' is not assigned and could be declared final137
Local variable 'other' could be declared final141
These nested if statements could be combined145 - 148
Deeply nested if..then statements are hard to read145 - 148
A method should have only one exit point, and that should be the last statement in the method147
Parameter 'aSectionId' is not assigned and could be declared final165
Parameter 'aSectionId' is not assigned and could be declared final170
Parameter 'aSettingId' is not assigned and could be declared final170
Parameter 'aSectionId' is not assigned and could be declared final180
Parameter 'aSection' is not assigned and could be declared final211
Parameter 'aSetting' is not assigned and could be declared final211
A method should have only one exit point, and that should be the last statement in the method216
An instanceof check is being performed on the caught exception. Create a separate catch clause for this exception type.226
Found 'DU'-anomaly for variable 'aSectionId' (lines '237'-'248').237 - 248
Parameter 'aSectionId' is not assigned and could be declared final237
A method should have only one exit point, and that should be the last statement in the method243
Found 'DD'-anomaly for variable 'result' (lines '254'-'255').254 - 255
Found 'DU'-anomaly for variable 'sectionId' (lines '263'-'274').263 - 274
Parameter 'sectionId' is not assigned and could be declared final263
A method should have only one exit point, and that should be the last statement in the method269
Parameter 'baseConfiguration' is not assigned and could be declared final276
Parameter 'documentations' is not assigned and could be declared final281
Parameter 'sections' is not assigned and could be declared final286
Use explicit scoping instead of the default package private level295 - 321
Found 'DU'-anomaly for variable 'settingId' (lines '295'-'321').295 - 321
Found 'DU'-anomaly for variable 'sectionId' (lines '295'-'321').295 - 321
Parameter 'sectionId' is not assigned and could be declared final295
Parameter 'settingId' is not assigned and could be declared final295
Found 'DD'-anomaly for variable 'selectedSection' (lines '297'-'303').297 - 303
Found 'DD'-anomaly for variable 'selectedSection' (lines '303'-'303').303
A method should have only one exit point, and that should be the last statement in the method309
A method should have only one exit point, and that should be the last statement in the method316

org/limmen/crs/model/Documentation.java

ViolationLine
Overridable method 'setLanguage' called during object construction43
Overridable method 'setText' called during object construction44
Parameter 'obj' is not assigned and could be declared final48
Local variable 'other' could be declared final52
These nested if statements could be combined56 - 59
Deeply nested if..then statements are hard to read56 - 59
A method should have only one exit point, and that should be the last statement in the method58
Found 'DD'-anomaly for variable 'result' (lines '80'-'81').80 - 81
Parameter 'language' is not assigned and could be declared final86
Parameter 'text' is not assigned and could be declared final91

org/limmen/crs/model/Section.java

ViolationLine
Perhaps 'documentation' could be replaced by a local variable.34
Overridable method 'setId' called during object construction49
Overridable method 'setSettings' called during object construction50
Use explicit scoping instead of the default package private level53 - 58
Parameter 'documentation' is not assigned and could be declared final53
Use explicit scoping instead of the default package private level60 - 71
Parameter 'newSetting' is not assigned and could be declared final60
Parameter 'obj' is not assigned and could be declared final74
Local variable 'other' could be declared final78
These nested if statements could be combined82 - 85
Deeply nested if..then statements are hard to read82 - 85
A method should have only one exit point, and that should be the last statement in the method84
Use explicit scoping instead of the default package private level92 - 95
Parameter 'aSettingId' is not assigned and could be declared final102
Found 'DD'-anomaly for variable 'result' (lines '124'-'125').124 - 125
Parameter 'id' is not assigned and could be declared final130
Use explicit scoping instead of the default package private level135 - 138
Parameter 'settings' is not assigned and could be declared final135
Found 'DU'-anomaly for variable 'settingId' (lines '143'-'154').143 - 154
Parameter 'settingId' is not assigned and could be declared final143
A method should have only one exit point, and that should be the last statement in the method149

org/limmen/crs/model/Setting.java

ViolationLine
Perhaps 'documentation' could be replaced by a local variable.39
Overridable method 'setType' called during object construction65
Overridable method 'setValue' called during object construction66
Use explicit scoping instead of the default package private level69 - 74
Parameter 'documentation' is not assigned and could be declared final69
Parameter 'obj' is not assigned and could be declared final77
Local variable 'other' could be declared final81
These nested if statements could be combined85 - 91
Deeply nested if..then statements are hard to read85 - 91
These nested if statements could be combined87 - 90
A method should have only one exit point, and that should be the last statement in the method89
When instantiating a SimpleDateFormat object, specify a Locale123
Local variable 'dateFormat' could be declared final123
Use explicit scoping instead of the default package private level134 - 137
Found 'DD'-anomaly for variable 'result' (lines '214'-'215').214 - 215
Parameter 'type' is not assigned and could be declared final221
Parameter 'value' is not assigned and could be declared final226

org/limmen/crs/model/convert/ValueConverter.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.16 - 268
Each class should declare at least one constructor25 - 268
When instantiating a SimpleDateFormat object, specify a Locale27
Parameter 'value' is not assigned and could be declared final29
Parameter 'type' is not assigned and could be declared final29
A method should have only one exit point, and that should be the last statement in the method33
A method should have only one exit point, and that should be the last statement in the method38
A method should have only one exit point, and that should be the last statement in the method43
A method should have only one exit point, and that should be the last statement in the method48
A method should have only one exit point, and that should be the last statement in the method53
A method should have only one exit point, and that should be the last statement in the method58
Parameter 'value' is not assigned and could be declared final72
Parameter 'type' is not assigned and could be declared final72
Local variable 'booleanValue' could be declared final82
A method should have only one exit point, and that should be the last statement in the method84
Local variable 'stringValue' could be declared final88
Position literals first in String comparisons90
Position literals first in String comparisons91
A method should have only one exit point, and that should be the last statement in the method93
Position literals first in String comparisons95
Position literals first in String comparisons96
Parameter 'value' is not assigned and could be declared final105
Parameter 'type' is not assigned and could be declared final105
Local variable 'dateValue' could be declared final115
A method should have only one exit point, and that should be the last statement in the method117
Static DateFormatter objects should be accessed in a synchronized manner117
Local variable 'stringValue' could be declared final121
Static DateFormatter objects should be accessed in a synchronized manner125
Caught exception is rethrown, original stack trace may be lost129 - 132
Parameter 'value' is not assigned and could be declared final144
Parameter 'type' is not assigned and could be declared final144
Local variable 'doubleValue' could be declared final153
A method should have only one exit point, and that should be the last statement in the method155
Local variable 'stringValue' could be declared final159
Caught exception is rethrown, original stack trace may be lost166 - 169
Parameter 'value' is not assigned and could be declared final181
Parameter 'type' is not assigned and could be declared final181
Local variable 'integerValue' could be declared final190
A method should have only one exit point, and that should be the last statement in the method192
Local variable 'stringValue' could be declared final196
Caught exception is rethrown, original stack trace may be lost203 - 206
Parameter 'values' is not assigned and could be declared final218
Parameter 'type' is not assigned and could be declared final218
Local variable 'arrayStringValue' could be declared final227
Local variable 'builder' could be declared final228
A method should have only one exit point, and that should be the last statement in the method236
Local variable 'stringValue' could be declared final240
Parameter 'value' is not assigned and could be declared final259
Parameter 'type' is not assigned and could be declared final259