PMD Results

The following document contains the results of PMD 4.1.

Files

org/apache/commons/flatfile/dsl/EntityLexer.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 5
Avoid unused imports such as 'java.util.Map' 6
Avoid unused imports such as 'antlr.ANTLRException' 16
Avoid unused imports such as 'antlr.CharScanner' 19
Avoid unused imports such as 'antlr.CommonToken' 24
Avoid unused imports such as 'antlr.MismatchedCharException' 27
Avoid unused imports such as 'antlr.ANTLRHashString' 29
Avoid unused imports such as 'antlr.SemanticException' 32
Avoid unused local variables such as 'theRetToken'. 53
Avoid unused local variables such as '_token'. 56
Avoid unused local variables such as '_saveIndex'. 241
Avoid unused local variables such as '_saveIndex'. 254
Avoid unused local variables such as '_saveIndex'. 267
Avoid unused local variables such as '_saveIndex'. 280
Avoid unused local variables such as '_saveIndex'. 293
Avoid unused local variables such as '_saveIndex'. 306
Avoid unused local variables such as '_saveIndex'. 319
Avoid unused local variables such as '_saveIndex'. 332
Avoid unused local variables such as '_saveIndex'. 345
Avoid unused local variables such as '_saveIndex'. 358
Avoid unused local variables such as '_saveIndex'. 371
Avoid unused local variables such as '_saveIndex'. 384
Avoid unused local variables such as '_saveIndex'. 397
Avoid unused local variables such as '_saveIndex'. 410
Avoid unused local variables such as '_saveIndex'. 423
Avoid unused local variables such as '_saveIndex'. 464
Avoid unused local variables such as '_saveIndex'. 493
Avoid empty if statements 514 - 515
Avoid unused local variables such as '_saveIndex'. 529
Avoid unused local variables such as '_saveIndex'. 564
Avoid unused local variables such as '_saveIndex'. 577
Avoid unused local variables such as '_saveIndex'. 680
Avoid unused local variables such as '_saveIndex'. 697
Avoid unused local variables such as '_saveIndex'. 714
Avoid unused local variables such as '_saveIndex'. 740
Avoid unused local variables such as '_saveIndex'. 758
Avoid unused local variables such as '_saveIndex'. 782
Avoid unused local variables such as '_saveIndex'. 865
Avoid unused local variables such as '_saveIndex'. 883
An empty statement (semicolon) not part of a loop 918
Avoid unused local variables such as '_saveIndex'. 921
An empty statement (semicolon) not part of a loop 954
Avoid unused local variables such as '_saveIndex'. 957
Avoid empty if statements 973 - 974
Avoid empty if statements 981 - 982
Avoid empty if statements 999 - 1000
An empty statement (semicolon) not part of a loop 1022
Avoid unused local variables such as '_saveIndex'. 1025

org/apache/commons/flatfile/dsl/EntityParser.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 5
Avoid unused imports such as 'java.util.Map' 6
Avoid unused imports such as 'antlr.TokenStreamIOException' 12
Avoid unused imports such as 'antlr.ANTLRException' 13
Avoid unused imports such as 'antlr.LLkParser' 14
Avoid unused imports such as 'antlr.MismatchedTokenException' 19
Avoid unused imports such as 'antlr.SemanticException' 20
Avoid unused imports such as 'java.util.Hashtable' 24
Avoid unused local variables such as 'junk'. 298
Avoid empty if statements 468 - 469
Avoid empty if statements 705 - 706
Avoid empty if statements 857 - 858
Avoid empty if statements 953 - 954

org/apache/commons/flatfile/dsl/EntityTokenTypes.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 5
Avoid unused imports such as 'java.util.Map' 6

org/apache/commons/flatfile/dsl/EntityTreeParser.java

Violation Line
Avoid unused imports such as 'java.util.Iterator' 9
Avoid unused imports such as 'antlr.TreeParser' 16
Avoid unused imports such as 'antlr.Token' 17
Avoid unused imports such as 'antlr.SemanticException' 23
Avoid unused imports such as 'antlr.collections.impl.BitSet' 24
Avoid unused imports such as 'antlr.ASTPair' 25
Avoid unused imports such as 'antlr.collections.impl.ASTArray' 26
Avoid unused local variables such as 'load_AST_in'. 93
Avoid unused local variables such as 'tmp1_AST_in'. 99
Avoid unused local variables such as 'tmp2_AST_in'. 123
Avoid unused local variables such as 'tmp3_AST_in'. 138
Avoid unused local variables such as 'defaultOptions_AST_in'. 177
Avoid unused local variables such as 'tmp4_AST_in'. 192
Avoid unused local variables such as 'name_AST_in'. 219
Avoid unused local variables such as 'tmp5_AST_in'. 234
Avoid unused local variables such as 'optionKV_AST_in'. 251
Avoid unused local variables such as 'entity_AST_in'. 303
Avoid unused local variables such as 'array_AST_in'. 343
Avoid unused local variables such as 'tmp6_AST_in'. 350
Avoid unused local variables such as 'tmp7_AST_in'. 367
Avoid unused local variables such as 'tmp8_AST_in'. 428
Avoid unused local variables such as 'field_AST_in'. 498
Avoid unused local variables such as 'tmp9_AST_in'. 501
Avoid unused local variables such as 'map_AST_in'. 515
Avoid unused local variables such as 'tmp10_AST_in'. 519
Avoid unused local variables such as 'tmp11_AST_in'. 529
Avoid unused local variables such as 'typeRef_AST_in'. 598
Avoid unused local variables such as 'entityOptions_AST_in'. 657
Avoid unused local variables such as 'tmp12_AST_in'. 660
Avoid unused local variables such as 'value_AST_in'. 689
Avoid unused local variables such as 'immutable_AST_in'. 753
Avoid unused local variables such as 'tmp13_AST_in'. 755
Avoid unused local variables such as 'fieldDef_AST_in'. 766
Avoid unused local variables such as 'tmp14_AST_in'. 855
Avoid unused local variables such as 'entityOption_AST_in'. 941
Avoid unused local variables such as 'tmp15_AST_in'. 945

org/apache/commons/flatfile/dsl/EntityTreeParserTokenTypes.java

Violation Line
Avoid unused imports such as 'java.io.IOException' 5
Avoid unused imports such as 'java.util.List' 7
Avoid unused imports such as 'java.util.Stack' 8
Avoid unused imports such as 'java.util.Iterator' 9
Avoid unused imports such as 'java.util.ArrayList' 10
Avoid unused imports such as 'java.util.HashMap' 11
Avoid unused imports such as 'org.apache.commons.flatfile.util.ApplyOptions' 14