PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/apache/jsieve/util/HaltTraversalException.java

Violation Line
It is a good practice to call super() in a constructor 30 - 31

org/apache/jsieve/util/NodeHandler.java

Violation Line
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 54
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 75
Avoid modifiers which are implied by the context 82
Avoid modifiers which are implied by the context 89
Avoid modifiers which are implied by the context 96
Avoid modifiers which are implied by the context 103
Avoid modifiers which are implied by the context 110
Avoid modifiers which are implied by the context 117
Avoid modifiers which are implied by the context 124
Avoid modifiers which are implied by the context 131
Avoid modifiers which are implied by the context 138
Avoid modifiers which are implied by the context 145
Avoid modifiers which are implied by the context 152
Avoid modifiers which are implied by the context 159
Avoid modifiers which are implied by the context 166
Avoid modifiers which are implied by the context 173
Avoid modifiers which are implied by the context 180
Avoid modifiers which are implied by the context 187
Avoid modifiers which are implied by the context 194
Avoid modifiers which are implied by the context 201
Avoid modifiers which are implied by the context 208

org/apache/jsieve/util/NodeToSieveAdapter.java

Violation Line
Avoid using final local variables, turn them into fields 99
Avoid using final local variables, turn them into fields 141
Avoid using final local variables, turn them into fields 145
Avoid using final local variables, turn them into fields 150
Avoid using final local variables, turn them into fields 154
Avoid using final local variables, turn them into fields 155
Avoid using final local variables, turn them into fields 158
Avoid using final local variables, turn them into fields 169
Avoid using final local variables, turn them into fields 178

org/apache/jsieve/util/NodeTraverser.java

Violation Line
Avoid using final local variables, turn them into fields 51

org/apache/jsieve/util/OutputUtils.java

Violation Line
Avoid using final local variables, turn them into fields 71
Avoid using final local variables, turn them into fields 72
Avoid using final local variables, turn them into fields 73
Avoid using final local variables, turn them into fields 74
Avoid using final local variables, turn them into fields 85
Avoid using final local variables, turn them into fields 86
Avoid using final local variables, turn them into fields 87

org/apache/jsieve/util/SieveHandler.java

Violation Line
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 54
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 75
Avoid modifiers which are implied by the context 83
Avoid modifiers which are implied by the context 91
Avoid modifiers which are implied by the context 99
Avoid modifiers which are implied by the context 106
Avoid modifiers which are implied by the context 116
Avoid modifiers which are implied by the context 124
Avoid modifiers which are implied by the context 131
Avoid modifiers which are implied by the context 138
Avoid modifiers which are implied by the context 146
Avoid modifiers which are implied by the context 153
Avoid modifiers which are implied by the context 160
Avoid modifiers which are implied by the context 168
Avoid modifiers which are implied by the context 176
Avoid modifiers which are implied by the context 182 - 259

org/apache/jsieve/util/SieveToXml.java

Violation Line
Avoid modifiers which are implied by the context 85
Avoid modifiers which are implied by the context 92
Avoid modifiers which are implied by the context 102
Avoid modifiers which are implied by the context 108
Avoid modifiers which are implied by the context 121
Avoid using final local variables, turn them into fields 157
Avoid using final local variables, turn them into fields 330 - 331

org/apache/jsieve/util/ToSieveHandlerFactory.java

Violation Line
It is a good practice to call super() in a constructor 62 - 68

org/apache/jsieve/util/XmlOut.java

Violation Line
Use explicit scoping instead of the default package private level 407
Use explicit scoping instead of the default package private level 408
Use explicit scoping instead of the default package private level 409
Avoid using final local variables, turn them into fields 534
Avoid using final local variables, turn them into fields 556
Avoid using final local variables, turn them into fields 575
Found 'DU'-anomaly for variable 'elementName' (lines '575'-'587'). 575 - 587
These nested if statements could be combined 600 - 602
Avoid using final local variables, turn them into fields 612
Found 'DD'-anomaly for variable 'result' (lines '618'-'624'). 618 - 624
Found 'DD'-anomaly for variable 'result' (lines '618'-'629'). 618 - 629
Avoid using final local variables, turn them into fields 619
Avoid using final local variables, turn them into fields 638
Avoid using final local variables, turn them into fields 639
Avoid using final local variables, turn them into fields 644
Avoid using final local variables, turn them into fields 645
Avoid using final local variables, turn them into fields 650
Avoid using final local variables, turn them into fields 655
Avoid using final local variables, turn them into fields 665

org/apache/jsieve/util/check/ScriptCheckMailAdapter.java

Violation Line
Avoid using final local variables, turn them into fields 107
Avoid using final local variables, turn them into fields 119
Found 'DD'-anomaly for variable 'result' (lines '143'-'148'). 143 - 148
Found 'DU'-anomaly for variable 'result' (lines '143'-'155'). 143 - 155
Found 'DU'-anomaly for variable 'result' (lines '148'-'155'). 148 - 155
Found 'DD'-anomaly for variable 'results' (lines '167'-'170'). 167 - 170
Found 'DU'-anomaly for variable 'results' (lines '170'-'184'). 170 - 184
Avoid using final local variables, turn them into fields 171
Avoid using final local variables, turn them into fields 173
Avoid using final local variables, turn them into fields 174
Found 'DD'-anomaly for variable 'result' (lines '206'-'208'). 206 - 208
Found 'DD'-anomaly for variable 'result' (lines '220'-'223'). 220 - 223
Found 'DU'-anomaly for variable 'result' (lines '223'-'229'). 223 - 229
Found 'DD'-anomaly for variable 'result' (lines '239'-'242'). 239 - 242
Found 'DU'-anomaly for variable 'result' (lines '242'-'248'). 242 - 248
Avoid using final local variables, turn them into fields 268
Avoid using final local variables, turn them into fields 271
Avoid using final local variables, turn them into fields 272
Avoid using final local variables, turn them into fields 278
Found 'DD'-anomaly for variable 'result' (lines '289'-'292'). 289 - 292
Found 'DU'-anomaly for variable 'result' (lines '292'-'300'). 292 - 300

org/apache/jsieve/util/check/ScriptChecker.java

Violation Line
Avoid using final local variables, turn them into fields 66
Avoid using final local variables, turn them into fields 67
Avoid using final local variables, turn them into fields 68
Avoid using final local variables, turn them into fields 89
Found 'DD'-anomaly for variable 'results' (lines '90'-'93'). 90 - 93
Found 'DD'-anomaly for variable 'results' (lines '93'-'96'). 93 - 96
Found 'DD'-anomaly for variable 'result' (lines '160'-'164'). 160 - 164
Found 'DD'-anomaly for variable 'result' (lines '178'-'182'). 178 - 182
Found 'DD'-anomaly for variable 'result' (lines '196'-'200'). 196 - 200
Found 'DD'-anomaly for variable 'result' (lines '211'-'214'). 211 - 214