PMD Results

The following document contains the results of PMD 4.2.2.

Files

org/openswift/interpreter/SwiftLexer.java

Violation Line
Avoid unused imports such as 'java.util.Stack' 5
Avoid unused imports such as 'java.util.List' 6
Avoid unused imports such as 'java.util.ArrayList' 7
An empty statement (semicolon) not part of a loop 47
Avoid empty finally blocks 73 - 74
Avoid empty finally blocks 94 - 95
Avoid empty finally blocks 115 - 116
Avoid empty finally blocks 136 - 137
Avoid empty finally blocks 157 - 158
Avoid empty finally blocks 178 - 179
Avoid empty finally blocks 199 - 200
Avoid empty finally blocks 220 - 221
Avoid empty finally blocks 241 - 242
Avoid empty finally blocks 262 - 263
Avoid empty finally blocks 283 - 284
Avoid empty finally blocks 303 - 304
Avoid empty finally blocks 324 - 325
Avoid empty finally blocks 344 - 345
Avoid empty finally blocks 364 - 365
Avoid empty finally blocks 384 - 385
Avoid empty finally blocks 404 - 405
Avoid empty finally blocks 425 - 426
Avoid empty finally blocks 446 - 447
Avoid empty finally blocks 467 - 468
Avoid empty finally blocks 488 - 489
Avoid empty finally blocks 509 - 510
Avoid empty finally blocks 530 - 531
Avoid empty finally blocks 551 - 552
Avoid empty finally blocks 572 - 573
Avoid empty finally blocks 593 - 594
Avoid empty finally blocks 614 - 615
Avoid empty finally blocks 635 - 636
Avoid empty finally blocks 655 - 656
Avoid empty finally blocks 675 - 676
Avoid empty finally blocks 695 - 696
Avoid empty finally blocks 716 - 717
Switch statements should have a default label 725 - 951

org/openswift/interpreter/SwiftParser.java

Violation Line
High amount of different objects as members denotes a high coupling 2 - 7553
Avoid unused imports such as 'java.util.Stack' 5
Avoid unused imports such as 'java.util.ArrayList' 7
Avoid unused local variables such as 'EOF2_tree'. 132
A switch with less than 3 branches is inefficient, use a if statement instead. 150 - 166
Avoid unused local variables such as 'stream_retval'. 182
Avoid if (x != y) ..; else ..; 182
Avoid empty finally blocks 204 - 205
Avoid empty finally blocks 252 - 253
Switch statements should have a default label 308 - 322
A switch with less than 3 branches is inefficient, use a if statement instead. 308 - 322
Avoid empty finally blocks 349 - 350
Avoid unused local variables such as 'START_BASIC_HEADER_BLOCK9_tree'. 381
Avoid unused local variables such as 'END_ALL_BLOCK15_tree'. 382
Avoid unused local variables such as 'stream_retval'. 446
Avoid if (x != y) ..; else ..; 446
Avoid empty finally blocks 479 - 480
Avoid unused local variables such as 'START_APPLICATION_HEADER_BLOCK16_tree'. 503
Avoid unused local variables such as 'END_ALL_BLOCK18_tree'. 504
Avoid unused local variables such as 'stream_retval'. 540
Avoid if (x != y) ..; else ..; 540
Avoid empty finally blocks 570 - 571
Switch statements should have a default label 657 - 683
A switch with less than 3 branches is inefficient, use a if statement instead. 657 - 683
Avoid empty finally blocks 698 - 699
Avoid unused local variables such as 'UPPERCASE_LETTER21_tree'. 729
Avoid unused local variables such as 'stream_retval'. 789
Avoid if (x != y) ..; else ..; 789
Avoid empty finally blocks 823 - 824
Avoid unused local variables such as 'UPPERCASE_LETTER27_tree'. 856
Avoid unused local variables such as 'stream_retval'. 923
Avoid if (x != y) ..; else ..; 923
Avoid empty finally blocks 958 - 959
Avoid unused local variables such as 'START_USER_HEADER_BLOCK34_tree'. 988
Avoid unused local variables such as 'START_BANKING_PRIORITY_CODE35_tree'. 989
Avoid unused local variables such as 'END_ALL_BLOCK37_tree'. 990
Avoid unused local variables such as 'START_MESSAGE_USER_REFERENCE38_tree'. 991
Avoid unused local variables such as 'END_ALL_BLOCK40_tree'. 992
Avoid unused local variables such as 'END_ALL_BLOCK41_tree'. 993
Switch statements should have a default label 1017 - 1037
A switch with less than 3 branches is inefficient, use a if statement instead. 1017 - 1037
A high ratio of statements to labels in a switch statement. Consider refactoring. 1017 - 1037
Avoid unused local variables such as 'stream_retval'. 1067
Avoid if (x != y) ..; else ..; 1067
Avoid empty finally blocks 1103 - 1104
Avoid unused local variables such as 'START_TEXT_BLOCK42_tree'. 1128
Avoid unused local variables such as 'CRLF43_tree'. 1129
Avoid unused local variables such as 'END_TEXT_BLOCK45_tree'. 1130
Avoid unused local variables such as 'stream_retval'. 1170
Avoid if (x != y) ..; else ..; 1170
Avoid empty finally blocks 1200 - 1201
Switch statements should have a default label 1247 - 1273
A switch with less than 3 branches is inefficient, use a if statement instead. 1247 - 1273
Avoid empty finally blocks 1288 - 1289
Avoid unused local variables such as 'START_TRAILER_BLOCK48_tree'. 1326
Avoid unused local variables such as 'START_MAC_TRAILER49_tree'. 1327
Avoid unused local variables such as 'END_ALL_BLOCK51_tree'. 1328
Avoid unused local variables such as 'START_CHK_TRAILER52_tree'. 1329
Avoid unused local variables such as 'END_ALL_BLOCK54_tree'. 1330
Avoid unused local variables such as 'START_PDE_TRAILER55_tree'. 1331
Avoid unused local variables such as 'END_ALL_BLOCK57_tree'. 1332
Avoid unused local variables such as 'START_DLM_TRAILER58_tree'. 1333
Avoid unused local variables such as 'END_ALL_BLOCK60_tree'. 1334
Avoid unused local variables such as 'END_ALL_BLOCK61_tree'. 1335
Switch statements should have a default label 1363 - 1383
A switch with less than 3 branches is inefficient, use a if statement instead. 1363 - 1383
A high ratio of statements to labels in a switch statement. Consider refactoring. 1363 - 1383
Switch statements should have a default label 1404 - 1424
A switch with less than 3 branches is inefficient, use a if statement instead. 1404 - 1424
A high ratio of statements to labels in a switch statement. Consider refactoring. 1404 - 1424
Switch statements should have a default label 1433 - 1453
A switch with less than 3 branches is inefficient, use a if statement instead. 1433 - 1453
A high ratio of statements to labels in a switch statement. Consider refactoring. 1433 - 1453
Avoid unused local variables such as 'stream_retval'. 1471
Avoid if (x != y) ..; else ..; 1471
Avoid empty finally blocks 1519 - 1520
Avoid empty finally blocks 1567 - 1568
Avoid empty finally blocks 1615 - 1616
A switch with less than 3 branches is inefficient, use a if statement instead. 1677 - 1693
A switch with less than 3 branches is inefficient, use a if statement instead. 1714 - 1733
Switch statements should have a default label 1744 - 1758
A switch with less than 3 branches is inefficient, use a if statement instead. 1744 - 1758
Switch statements should have a default label 1773 - 1787
A switch with less than 3 branches is inefficient, use a if statement instead. 1773 - 1787
Switch statements should have a default label 1796 - 1810
A switch with less than 3 branches is inefficient, use a if statement instead. 1796 - 1810
Avoid empty finally blocks 1831 - 1832
A switch with less than 3 branches is inefficient, use a if statement instead. 1871 - 1885
Avoid empty finally blocks 1901 - 1902
A switch with less than 3 branches is inefficient, use a if statement instead. 1941 - 1955
Avoid empty finally blocks 1971 - 1972
Avoid unused local variables such as 'TAG_13C75_tree'. 2003
Avoid unused local variables such as 'CODE_SEPARATOR76_tree'. 2004
Avoid unused local variables such as 'CODE_SEPARATOR78_tree'. 2005
Avoid unused local variables such as 'CRLF82_tree'. 2006
Avoid unused local variables such as 'stream_retval'. 2064
Avoid if (x != y) ..; else ..; 2064
Avoid empty finally blocks 2097 - 2098
Avoid unused local variables such as 'TAG_2083_tree'. 2121
Avoid unused local variables such as 'CRLF85_tree'. 2122
Avoid unused local variables such as 'stream_retval'. 2152
Avoid if (x != y) ..; else ..; 2152
Avoid empty finally blocks 2182 - 2183
Avoid unused local variables such as 'TAG_23B86_tree'. 2206
Avoid unused local variables such as 'CRLF88_tree'. 2207
Avoid unused local variables such as 'stream_retval'. 2237
Avoid if (x != y) ..; else ..; 2237
Avoid empty finally blocks 2267 - 2268
Avoid unused local variables such as 'TAG_23E89_tree'. 2294
Avoid unused local variables such as 'CODE_SEPARATOR91_tree'. 2295
Avoid unused local variables such as 'CRLF93_tree'. 2296
Switch statements should have a default label 2322 - 2339
A switch with less than 3 branches is inefficient, use a if statement instead. 2322 - 2339
Avoid unused local variables such as 'stream_retval'. 2354
Avoid if (x != y) ..; else ..; 2354
Avoid empty finally blocks 2385 - 2386
Avoid unused local variables such as 'TAG_26T94_tree'. 2409
Avoid unused local variables such as 'CRLF96_tree'. 2410
Avoid unused local variables such as 'stream_retval'. 2440
Avoid if (x != y) ..; else ..; 2440
Avoid empty finally blocks 2470 - 2471
Avoid unused local variables such as 'TAG_32A97_tree'. 2498
Avoid unused local variables such as 'CRLF101_tree'. 2499
Avoid unused local variables such as 'stream_retval'. 2543
Avoid if (x != y) ..; else ..; 2543
Avoid empty finally blocks 2575 - 2576
Avoid unused local variables such as 'TAG_33B102_tree'. 2601
Avoid unused local variables such as 'CRLF105_tree'. 2602
Avoid unused local variables such as 'stream_retval'. 2639
Avoid if (x != y) ..; else ..; 2639
Avoid empty finally blocks 2670 - 2671
Avoid unused local variables such as 'TAG_36106_tree'. 2694
Avoid unused local variables such as 'CRLF108_tree'. 2695
Avoid unused local variables such as 'stream_retval'. 2725
Avoid if (x != y) ..; else ..; 2725
Avoid empty finally blocks 2755 - 2756
Avoid unused local variables such as 'TAG_50A109_tree'. 2783
Avoid unused local variables such as 'CODE_SEPARATOR110_tree'. 2784
Avoid unused local variables such as 'CRLF112_tree'. 2785
Avoid unused local variables such as 'CRLF114_tree'. 2786
Avoid unused local variables such as 'stream_retval'. 2830
Avoid if (x != y) ..; else ..; 2830
Avoid empty finally blocks 2861 - 2862
Avoid unused local variables such as 'TAG_50K115_tree'. 2889
Avoid unused local variables such as 'CODE_SEPARATOR116_tree'. 2890
Avoid unused local variables such as 'CRLF118_tree'. 2891
Avoid unused local variables such as 'CRLF120_tree'. 2892
Switch statements should have a default label 2930 - 2941
A switch with less than 3 branches is inefficient, use a if statement instead. 2930 - 2941
Avoid unused local variables such as 'stream_retval'. 2953
Avoid if (x != y) ..; else ..; 2953
Avoid empty finally blocks 2984 - 2985
Avoid unused local variables such as 'TAG_50F121_tree'. 3011
Avoid unused local variables such as 'CRLF123_tree'. 3012
Avoid unused local variables such as 'CRLF125_tree'. 3013
Switch statements should have a default label 3047 - 3058
A switch with less than 3 branches is inefficient, use a if statement instead. 3047 - 3058
Avoid unused local variables such as 'stream_retval'. 3070
Avoid if (x != y) ..; else ..; 3070
Avoid empty finally blocks 3101 - 3102
Avoid empty finally blocks 3134 - 3135
Avoid empty finally blocks 3167 - 3168
Avoid empty finally blocks 3200 - 3201
Avoid empty finally blocks 3233 - 3234
Avoid empty finally blocks 3266 - 3267
Avoid empty finally blocks 3299 - 3300
Avoid empty finally blocks 3332 - 3333
Avoid empty finally blocks 3365 - 3366
Avoid empty finally blocks 3398 - 3399
Switch statements should have a default label 3451 - 3495
Avoid empty finally blocks 3506 - 3507
Avoid empty finally blocks 3539 - 3540
Avoid empty finally blocks 3572 - 3573
Avoid empty finally blocks 3605 - 3606
Avoid empty finally blocks 3638 - 3639
Avoid empty finally blocks 3671 - 3672
Avoid empty finally blocks 3704 - 3705
Avoid empty finally blocks 3737 - 3738
Avoid empty finally blocks 3783 - 3784
Avoid empty finally blocks 3841 - 3842
Avoid empty finally blocks 3953 - 3954
Avoid empty finally blocks 3999 - 4000
Avoid empty finally blocks 4045 - 4046
Avoid empty finally blocks 4103 - 4104
Avoid empty finally blocks 4167 - 4168
Avoid empty finally blocks 4375 - 4376
Avoid empty finally blocks 4451 - 4452
Avoid empty finally blocks 4515 - 4516
Avoid empty finally blocks 4561 - 4562
Avoid empty finally blocks 4613 - 4614
Avoid empty finally blocks 4725 - 4726
Avoid empty finally blocks 4789 - 4790
Avoid empty finally blocks 4865 - 4866
A switch with less than 3 branches is inefficient, use a if statement instead. 4906 - 4923
Avoid empty finally blocks 4940 - 4941
Avoid empty finally blocks 5004 - 5005
Avoid unused local variables such as 'set222_tree'. 5025
Avoid empty finally blocks 5057 - 5058
Avoid empty finally blocks 5121 - 5122
Avoid unused local variables such as 'set227_tree'. 5142
A switch with less than 3 branches is inefficient, use a if statement instead. 5162 - 5186
Avoid empty finally blocks 5203 - 5204
Avoid empty finally blocks 5267 - 5268
Avoid empty finally blocks 5331 - 5332
Avoid unused local variables such as 'set236_tree'. 5352
A switch with less than 3 branches is inefficient, use a if statement instead. 5372 - 5396
Avoid empty finally blocks 5413 - 5414
Avoid unused local variables such as 'set237_tree'. 5436
Avoid unused local variables such as 'set238_tree'. 5437
Avoid unused local variables such as 'set239_tree'. 5438
Avoid empty finally blocks 5492 - 5493
Avoid empty finally blocks 5568 - 5569
Avoid empty finally blocks 5626 - 5627
A switch with less than 3 branches is inefficient, use a if statement instead. 5670 - 5684
A switch with less than 3 branches is inefficient, use a if statement instead. 5702 - 5716
Avoid empty finally blocks 5732 - 5733
Switch statements should have a default label 5772 - 5784
A switch with less than 3 branches is inefficient, use a if statement instead. 5772 - 5784
A switch with less than 3 branches is inefficient, use a if statement instead. 5802 - 5819
Avoid empty finally blocks 5836 - 5837
Avoid unused local variables such as 'set255_tree'. 5857
A switch with less than 3 branches is inefficient, use a if statement instead. 5877 - 5901
Avoid empty finally blocks 5918 - 5919
Avoid unused local variables such as 'set262_tree'. 5955
Avoid unused local variables such as 'set263_tree'. 5956
Avoid unused local variables such as 'set264_tree'. 5957
Avoid unused local variables such as 'set265_tree'. 5958
Avoid unused local variables such as 'set266_tree'. 5959
Switch statements should have a default label 6032 - 6073
A switch with less than 3 branches is inefficient, use a if statement instead. 6032 - 6073
A high ratio of statements to labels in a switch statement. Consider refactoring. 6032 - 6073
Avoid empty finally blocks 6088 - 6089
Switch statements should have a default label 6133 - 6227
A high ratio of statements to labels in a switch statement. Consider refactoring. 6133 - 6227
Avoid empty finally blocks 6238 - 6239
Avoid unused local variables such as 'CODE_SEPARATOR277_tree'. 6266
Avoid unused local variables such as 'CODE_SEPARATOR280_tree'. 6267
Switch statements should have a default label 6288 - 6393
A switch with less than 3 branches is inefficient, use a if statement instead. 6288 - 6393
A high ratio of statements to labels in a switch statement. Consider refactoring. 6288 - 6393
Avoid unused local variables such as 'stream_retval'. 6317
Avoid if (x != y) ..; else ..; 6317
Avoid unused local variables such as 'stream_retval'. 6371
Avoid if (x != y) ..; else ..; 6371
Avoid empty finally blocks 6404 - 6405
Switch statements should have a default label 6448 - 6466
A switch with less than 3 branches is inefficient, use a if statement instead. 6448 - 6466
Avoid empty finally blocks 6487 - 6488
Avoid unused local variables such as 'set285_tree'. 6509
A switch with less than 3 branches is inefficient, use a if statement instead. 6530 - 6554
Avoid empty finally blocks 6575 - 6576
Avoid empty finally blocks 6639 - 6640
Avoid empty finally blocks 6685 - 6686
Avoid unused local variables such as 'set292_tree'. 6706
A switch with less than 3 branches is inefficient, use a if statement instead. 6726 - 6750
Avoid empty finally blocks 6767 - 6768
Avoid unused local variables such as 'set293_tree'. 6788
A switch with less than 3 branches is inefficient, use a if statement instead. 6808 - 6832
Avoid empty finally blocks 6849 - 6850
Avoid unused local variables such as 'set294_tree'. 6870
A switch with less than 3 branches is inefficient, use a if statement instead. 6890 - 6914
Avoid empty finally blocks 6931 - 6932
Avoid unused local variables such as 'set295_tree'. 6952
A switch with less than 3 branches is inefficient, use a if statement instead. 6972 - 6996
Avoid empty finally blocks 7013 - 7014
Avoid unused local variables such as 'set296_tree'. 7034
A switch with less than 3 branches is inefficient, use a if statement instead. 7054 - 7078
Avoid empty finally blocks 7095 - 7096
Avoid unused local variables such as 'set297_tree'. 7116
A switch with less than 3 branches is inefficient, use a if statement instead. 7136 - 7160
Avoid empty finally blocks 7177 - 7178

org/openswift/interpreter/SwiftWalker.java

Violation Line
Avoid unused imports such as 'java.util.Stack' 5
Avoid unused imports such as 'java.util.List' 6
Avoid unused imports such as 'java.util.ArrayList' 7
A switch with less than 3 branches is inefficient, use a if statement instead. 117 - 132
Avoid empty finally blocks 144 - 145
Avoid empty finally blocks 179 - 180
Deeply nested if..then statements are hard to read 224 - 238
Switch statements should have a default label 241 - 254
A switch with less than 3 branches is inefficient, use a if statement instead. 241 - 254
Avoid empty finally blocks 269 - 270
Avoid if (x != y) ..; else ..; 336
Avoid if (x != y) ..; else ..; 336
Avoid if (x != y) ..; else ..; 336
Avoid if (x != y) ..; else ..; 336
Avoid empty finally blocks 347 - 348
Avoid empty finally blocks 389 - 390
Avoid empty finally blocks 414 - 415
Avoid empty finally blocks 456 - 457
Avoid empty finally blocks 498 - 499
Avoid empty finally blocks 523 - 524
Avoid empty finally blocks 548 - 549
A switch with less than 3 branches is inefficient, use a if statement instead. 581 - 592
Avoid empty finally blocks 603 - 604
Avoid empty finally blocks 634 - 635
Avoid empty finally blocks 666 - 667
Avoid if (x != y) ..; else ..; 710
Avoid if (x != y) ..; else ..; 710
Avoid if (x != y) ..; else ..; 710
Avoid empty finally blocks 721 - 722
Avoid if (x != y) ..; else ..; 758
Avoid if (x != y) ..; else ..; 758
Avoid if (x != y) ..; else ..; 758
Avoid if (x != y) ..; else ..; 758
Avoid empty finally blocks 769 - 770
Avoid empty finally blocks 805 - 806