PMD Results

The following document contains the results of PMD 5.5.1.

Files

net/sf/mbus4j/MBusUtils.java

Violation Line
Useless parentheses. 49
Useless parentheses. 51

net/sf/mbus4j/dataframes/SelectionOfSlaves.java

Violation Line
Useless parentheses. 228
Useless parentheses. 228
Useless parentheses. 248
Useless parentheses. 248
Useless parentheses. 264
Useless parentheses. 264
Useless parentheses. 280
Useless parentheses. 280

net/sf/mbus4j/dataframes/SingleCharFrame.java

Violation Line
Avoid modifiers which are implied by the context 4259
Avoid modifiers which are implied by the context 61

net/sf/mbus4j/dataframes/UserDataResponse.java

Violation Line
Useless parentheses. 93
Useless parentheses. 93
Useless parentheses. 275
Ternary operators that can be simplified with || or && 318320
Useless parentheses. 319320
Useless parentheses. 423
Useless parentheses. 424
Useless parentheses. 425
Useless parentheses. 426
Useless parentheses. 427
Useless parentheses. 428
Useless parentheses. 447
Useless parentheses. 448
Useless parentheses. 449

net/sf/mbus4j/dataframes/datablocks/BcdValue.java

Violation Line
Avoid modifiers which are implied by the context 36
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 42

net/sf/mbus4j/dataframes/datablocks/DataBlock.java

Violation Line
Useless parentheses. 528
Useless parentheses. 528
Useless parentheses. 544
Useless parentheses. 545
Useless parentheses. 546
Avoid empty if statements 546547
Useless parentheses. 611
Useless parentheses. 611

net/sf/mbus4j/dataframes/datablocks/vif/Vif.java

Violation Line
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 49
Avoid modifiers which are implied by the context 50
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 52
Avoid modifiers which are implied by the context 53
Avoid modifiers which are implied by the context 54
Avoid modifiers which are implied by the context 55
Avoid modifiers which are implied by the context 56
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 58
Avoid modifiers which are implied by the context 59
Avoid modifiers which are implied by the context 60
Avoid modifiers which are implied by the context 61
Avoid modifiers which are implied by the context 62
Avoid modifiers which are implied by the context 63
Avoid modifiers which are implied by the context 64
Avoid modifiers which are implied by the context 65
Avoid modifiers which are implied by the context 66
Avoid modifiers which are implied by the context 67
Avoid modifiers which are implied by the context 68
Avoid modifiers which are implied by the context 69
Avoid modifiers which are implied by the context 70
Avoid modifiers which are implied by the context 93113
Unnecessary final modifier in final class 95112
Useless parentheses. 101
Useless parentheses. 101

net/sf/mbus4j/dataframes/datablocks/vif/VifFB.java

Violation Line
Too many static imports may lead to messy code 1268
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257
Useless parentheses. 257

net/sf/mbus4j/dataframes/datablocks/vif/VifFD.java

Violation Line
Too many static imports may lead to messy code 1282
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271
Useless parentheses. 271

net/sf/mbus4j/dataframes/datablocks/vif/VifManufacturerSpecific.java

Violation Line
Useless parentheses. 85

net/sf/mbus4j/dataframes/datablocks/vif/VifPrimary.java

Violation Line
Too many static imports may lead to messy code 1303
Useless parentheses. 290
Useless parentheses. 290
Useless parentheses. 290
Useless parentheses. 291
Useless parentheses. 291
Useless parentheses. 291
Useless parentheses. 292
Useless parentheses. 292
Useless parentheses. 292

net/sf/mbus4j/dataframes/datablocks/vif/Vife.java

Violation Line
Avoid modifiers which are implied by the context 37
Avoid modifiers which are implied by the context 38
Avoid modifiers which are implied by the context 39
Avoid modifiers which are implied by the context 40
Avoid modifiers which are implied by the context 41
Avoid modifiers which are implied by the context 42
Avoid modifiers which are implied by the context 43
Avoid modifiers which are implied by the context 44
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 48

net/sf/mbus4j/dataframes/datablocks/vif/VifePrimary.java

Violation Line
An empty statement (semicolon) not part of a loop 217
An empty statement (semicolon) not part of a loop 237
An empty statement (semicolon) not part of a loop 252

net/sf/mbus4j/decoder/Decoder.java

Violation Line
Useless parentheses. 88
These nested if statements could be combined 123130
These nested if statements could be combined 124129
Useless parentheses. 473
Avoid unused private methods such as 'bcd2Int(byte)'. 515
Useless parentheses. 520
Useless parentheses. 522

net/sf/mbus4j/decoder/Stack.java

Violation Line
Useless parentheses. 131
Useless parentheses. 131
Useless parentheses. 131
Useless parentheses. 131
Useless parentheses. 133
Useless parentheses. 159
Useless parentheses. 159
Useless parentheses. 159
Useless parentheses. 162
Useless parentheses. 166
Useless parentheses. 169
Useless parentheses. 216
Useless parentheses. 233

net/sf/mbus4j/decoder/VariableDataBlockDecoder.java

Violation Line
Useless parentheses. 184
Useless parentheses. 683
Useless parentheses. 683
Useless parentheses. 694
Useless parentheses. 694
Useless parentheses. 721
Useless parentheses. 721

net/sf/mbus4j/devices/Sender.java

Violation Line
Avoid modifiers which are implied by the context 41

net/sf/mbus4j/encoder/Encoder.java

Violation Line
Avoid unused imports such as 'net.sf.mbus4j.dataframes.datablocks.vif.VifeFC' 65
Avoid unused private fields such as 'log'. 83
Useless parentheses. 171
Useless parentheses. 172
Useless parentheses. 173
Ternary operators that can be simplified with || or && 178
Useless parentheses. 256
Useless parentheses. 256
An empty statement (semicolon) not part of a loop 321
Useless parentheses. 485
Useless parentheses. 486
Useless parentheses. 487
Avoid unused method parameters such as 'currentPos'. 522
Avoid empty if statements 623624

net/sf/mbus4j/log/LogUtils.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 30