PMD Results

The following document contains the results of PMD 4.2.2.

Files

net/sf/cobol2j/RecordSet.java

Violation Line
Found 'DU'-anomaly for variable 'dfv' (lines '55'-'122'). 55 - 122
Found 'DD'-anomaly for variable 'dfv' (lines '55'-'70'). 55 - 70
Found 'DU'-anomaly for variable 'fields' (lines '57'-'122'). 57 - 122
Found 'DU'-anomaly for variable 'recDef' (lines '59'-'122'). 59 - 122
Found 'DU'-anomaly for variable 'dfv' (lines '70'-'122'). 70 - 122
Found 'DD'-anomaly for variable 'occurs' (lines '133'-'139'). 133 - 139
Found 'DD'-anomaly for variable 'occurs' (lines '133'-'141'). 133 - 141
Found 'DU'-anomaly for variable 'fType' (lines '144'-'251'). 144 - 251
Found 'DD'-anomaly for variable 'occurs' (lines '232'-'238'). 232 - 238
Found 'DD'-anomaly for variable 'occurs' (lines '232'-'240'). 232 - 240
Use explicit scoping instead of the default package private level 253 - 273
Found 'DD'-anomaly for variable 'buf2' (lines '264'-'267'). 264 - 267
Found 'DD'-anomaly for variable 'buf2' (lines '267'-'267'). 267
Use explicit scoping instead of the default package private level 275 - 286
Found 'DU'-anomaly for variable 'retValue' (lines '280'-'286'). 280 - 286
Use explicit scoping instead of the default package private level 288 - 307
Found 'DU'-anomaly for variable 'f' (lines '301'-'307'). 301 - 307
Use explicit scoping instead of the default package private level 309 - 328
Found 'DU'-anomaly for variable 'd' (lines '322'-'328'). 322 - 328
Use explicit scoping instead of the default package private level 330 - 349
Found 'DU'-anomaly for variable 'f' (lines '343'-'349'). 343 - 349
Use explicit scoping instead of the default package private level 351 - 370
Found 'DU'-anomaly for variable 'd' (lines '364'-'370'). 364 - 370
Use explicit scoping instead of the default package private level 372 - 474
Found 'DU'-anomaly for variable 'dec' (lines '375'-'474'). 375 - 474
Found 'DU'-anomaly for variable 'positives' (lines '381'-'474'). 381 - 474
Found 'DU'-anomaly for variable 'negatives' (lines '382'-'474'). 382 - 474
Found 'DU'-anomaly for variable 'failoverpositives' (lines '383'-'474'). 383 - 474
Found 'DU'-anomaly for variable 'failovernegatives' (lines '384'-'474'). 384 - 474
Found 'DD'-anomaly for variable 'positive' (lines '403'-'422'). 403 - 422
Found 'DD'-anomaly for variable 'positive' (lines '403'-'429'). 403 - 429
Found 'DD'-anomaly for variable 'positive' (lines '403'-'436'). 403 - 436
Found 'DD'-anomaly for variable 'positive' (lines '403'-'448'). 403 - 448
Found 'DU'-anomaly for variable 'positive' (lines '403'-'474'). 403 - 474
Avoid unnecessary temporaries when converting primitives to Strings 421
Found 'DD'-anomaly for variable 'positive' (lines '422'-'429'). 422 - 429
Found 'DD'-anomaly for variable 'positive' (lines '422'-'436'). 422 - 436
Found 'DD'-anomaly for variable 'positive' (lines '422'-'448'). 422 - 448
Found 'DU'-anomaly for variable 'positive' (lines '422'-'474'). 422 - 474
Avoid unnecessary temporaries when converting primitives to Strings 428
Found 'DD'-anomaly for variable 'positive' (lines '429'-'436'). 429 - 436
Found 'DD'-anomaly for variable 'positive' (lines '429'-'448'). 429 - 448
Found 'DU'-anomaly for variable 'positive' (lines '429'-'474'). 429 - 474
Avoid unnecessary temporaries when converting primitives to Strings 435
Found 'DD'-anomaly for variable 'positive' (lines '436'-'448'). 436 - 448
Found 'DU'-anomaly for variable 'positive' (lines '436'-'474'). 436 - 474
Avoid unnecessary temporaries when converting primitives to Strings 447
Found 'DU'-anomaly for variable 'positive' (lines '448'-'474'). 448 - 474
Found 'DU'-anomaly for variable 'retVal' (lines '464'-'474'). 464 - 474
Use explicit scoping instead of the default package private level 481 - 537
Found 'DU'-anomaly for variable 'dec' (lines '484'-'537'). 484 - 537
Found 'DU'-anomaly for variable 'strbuf' (lines '486'-'537'). 486 - 537
Found 'DU'-anomaly for variable 'retVal' (lines '518'-'537'). 518 - 537
A method should have only one exit point, and that should be the last statement in the method 527
A method should have only one exit point, and that should be the last statement in the method 529
Use explicit scoping instead of the default package private level 539 - 549
An empty statement (semicolon) not part of a loop 545
Use explicit scoping instead of the default package private level 556 - 559
Use explicit scoping instead of the default package private level 561 - 586
Found 'DU'-anomaly for variable 'retVal' (lines '579'-'586'). 579 - 586
Use explicit scoping instead of the default package private level 588 - 603
Use explicit scoping instead of the default package private level 605 - 620
A method should have only one exit point, and that should be the last statement in the method 627
A method should have only one exit point, and that should be the last statement in the method 629
Found 'DU'-anomaly for variable 'afterfirst' (lines '646'-'658'). 646 - 658
Found 'DU'-anomaly for variable 'afterfirst' (lines '654'-'658'). 654 - 658
Found 'DU'-anomaly for variable 'ch' (lines '666'-'702'). 666 - 702
Found 'DD'-anomaly for variable 'ch' (lines '666'-'679'). 666 - 679
A method should have only one exit point, and that should be the last statement in the method 669
Found 'DU'-anomaly for variable 'pseudo' (lines '672'-'702'). 672 - 702
Found 'DD'-anomaly for variable 'ch' (lines '679'-'682'). 679 - 682

net/sf/cobol2j/RecordWriter.java

Violation Line
Use explicit scoping instead of the default package private level 34
Use explicit scoping instead of the default package private level 35
Use explicit scoping instead of the default package private level 36
Found 'DD'-anomaly for variable 'rF' (lines '46'-'50'). 46 - 50
Found 'DU'-anomaly for variable 'potentialDepOn' (lines '59'-'98'). 59 - 98
Found 'DD'-anomaly for variable 'occurs' (lines '66'-'72'). 66 - 72
Found 'DD'-anomaly for variable 'occurs' (lines '66'-'74'). 66 - 74
Found 'DD'-anomaly for variable 'occurs' (lines '82'-'88'). 82 - 88
Found 'DD'-anomaly for variable 'occurs' (lines '82'-'90'). 82 - 90
Found 'DD'-anomaly for variable 'buf' (lines '194'-'220'). 194 - 220
Found 'DU'-anomaly for variable 'k' (lines '195'-'273'). 195 - 273
Found 'DD'-anomaly for variable 'buf' (lines '220'-'220'). 220
A method should have only one exit point, and that should be the last statement in the method 280
A method should have only one exit point, and that should be the last statement in the method 282
A method should have only one exit point, and that should be the last statement in the method 299
A method should have only one exit point, and that should be the last statement in the method 303 - 304

net/sf/cobol2j/RecordsMap.java

Violation Line
It is a good practice to call super() in a constructor 9 - 17

net/sf/cobol2j/examples/Cb2xc2j.java

Violation Line
Found 'DD'-anomaly for variable 'preProcessed' (lines '38'-'42'). 38 - 42
Found 'DD'-anomaly for variable 'cb2xmldoc' (lines '39'-'53'). 39 - 53
Found 'DD'-anomaly for variable 'lexer' (lines '40'-'46'). 40 - 46

net/sf/cobol2j/examples/Dat2csv.java

Violation Line
Error while parsing /home/pablo/cobol2j/src/java/net/sf/cobol2j/examples/Dat2csv.java: Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/src/java/net/sf/cobol2j/examples/Dat2csv.java: Can't use JDK 1.5 for loop syntax when running in JDK 1.4 mode! 0

net/sf/cobol2j/examples/Dat2dat.java

Violation Line
Found 'DU'-anomaly for variable 'rw' (lines '38'-'47'). 38 - 47

net/sf/cobol2j/examples/Dat2xls.java

Violation Line
Found 'DU'-anomaly for variable 'rowNr' (lines '46'-'72'). 46 - 72
Found 'DU'-anomaly for variable 'sheet' (lines '48'-'72'). 48 - 72
Found 'DU'-anomaly for variable 'recdefs' (lines '51'-'72'). 51 - 72
Found 'DD'-anomaly for variable 'rF' (lines '55'-'59'). 55 - 59
Do not use the short type 63
Do not use the short type 64
Found 'DD'-anomaly for variable 'occurs' (lines '82'-'91'). 82 - 91
Found 'DD'-anomaly for variable 'occurs' (lines '82'-'100'). 82 - 100
Do not use the short type 90
Do not use the short type 91
Found 'DD'-anomaly for variable 'occurs' (lines '91'-'100'). 91 - 100
Found 'DD'-anomaly for variable 'occurs' (lines '129'-'138'). 129 - 138
Found 'DD'-anomaly for variable 'occurs' (lines '129'-'147'). 129 - 147
Do not use the short type 137
Do not use the short type 138
Found 'DD'-anomaly for variable 'occurs' (lines '138'-'147'). 138 - 147

net/sf/cobol2j/examples/Dat2xml.java

Violation Line
Found 'DU'-anomaly for variable 'docelement' (lines '50'-'77'). 50 - 77
Found 'DU'-anomaly for variable 'recdefs' (lines '51'-'77'). 51 - 77
Found 'DD'-anomaly for variable 'rF' (lines '55'-'59'). 55 - 59
Found 'DD'-anomaly for variable 'occurs' (lines '87'-'98'). 87 - 98
Found 'DD'-anomaly for variable 'occurs' (lines '87'-'106'). 87 - 106
Found 'DD'-anomaly for variable 'e' (lines '97'-'97'). 97
Found 'DU'-anomaly for variable 'e' (lines '97'-'147'). 97 - 147
This statement may have some unnecessary parentheses 98
Found 'DD'-anomaly for variable 'occurs' (lines '98'-'106'). 98 - 106
Found 'DD'-anomaly for variable 'occurs' (lines '117'-'128'). 117 - 128
Found 'DD'-anomaly for variable 'occurs' (lines '117'-'136'). 117 - 136
This statement may have some unnecessary parentheses 128
Found 'DD'-anomaly for variable 'occurs' (lines '128'-'136'). 128 - 136

net/sf/cobol2j/FieldFormat.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldFormat.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldFormat.java: Can't use annotations when running in JDK 1.4 mode! 0

net/sf/cobol2j/FieldsGroup.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldsGroup.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldsGroup.java: Can't use annotations when running in JDK 1.4 mode! 0

net/sf/cobol2j/FieldsList.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldsList.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FieldsList.java: Can't use annotations when running in JDK 1.4 mode! 0

net/sf/cobol2j/FileFormat.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FileFormat.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/FileFormat.java: Can't use annotations when running in JDK 1.4 mode! 0

net/sf/cobol2j/ObjectFactory.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/ObjectFactory.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/ObjectFactory.java: Can't use annotations when running in JDK 1.4 mode! 0

net/sf/cobol2j/RecordFormat.java

Violation Line
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/RecordFormat.java: Can't use annotations when running in JDK 1.4 mode! 0
Error while parsing /home/pablo/cobol2j/target/generated-sources/xjc/net/sf/cobol2j/RecordFormat.java: Can't use annotations when running in JDK 1.4 mode! 0