Fork me on GitHub

PMD Results

The following document contains the results of PMD 7.0.0.

Violations By Priority

Priority 3

org/apache/maven/surefire/group/parse/GroupMatcherParser.java
Rule Violation Line
UnnecessarySemicolon Unnecessary semicolon 82
UnnecessarySemicolon Unnecessary semicolon 102
UnnecessarySemicolon Unnecessary semicolon 110
UnnecessarySemicolon Unnecessary semicolon 129
UnusedPrivateField Avoid unused private fields such as 'jj_ntk'. 436
UnusedPrivateMethod Avoid unused private methods such as 'jj_ntk_f()'. 600
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on method 'jjStopStringLiteralDfa_0': private methods cannot be overridden 15
UnnecessaryModifier Unnecessary modifier 'final' on method 'jjStartNfa_0': private methods cannot be overridden 63
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 233
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 280
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 373
org/apache/maven/surefire/group/parse/ParseException.java
Rule Violation Line
EmptyControlStatement Empty if statement 131140
org/apache/maven/surefire/group/parse/SimpleCharStream.java
Rule Violation Line
UnnecessaryReturn Unnecessary return statement 123

Priority 4

org/apache/maven/surefire/group/parse/GroupMatcherParser.java
Rule Violation Line
UselessParentheses Useless parentheses. 32
UselessParentheses Useless parentheses. 175
UselessParentheses Useless parentheses. 183
UselessParentheses Useless parentheses. 191
UselessParentheses Useless parentheses. 199
UselessParentheses Useless parentheses. 207
UselessParentheses Useless parentheses. 215
UselessParentheses Useless parentheses. 223
UselessParentheses Useless parentheses. 231
UselessParentheses Useless parentheses. 239
UselessParentheses Useless parentheses. 247
UselessParentheses Useless parentheses. 255
UselessParentheses Useless parentheses. 263
UselessParentheses Useless parentheses. 271
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 453
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 457
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'UnsupportedEncodingException' is already in scope because it is imported in this file 458
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 467
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 471
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'UnsupportedEncodingException' is already in scope because it is imported in this file 472
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'Reader' is already in scope because it is imported in this file 482
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'Reader' is already in scope because it is imported in this file 492
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'Error' is already in scope because it is declared in java.lang 552
UselessParentheses Useless parentheses. 602
UselessParentheses Useless parentheses. 604
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java
Rule Violation Line
UnnecessaryImport Unused import 'org.apache.maven.surefire.group.match.*' 4
UnnecessaryImport Unused import 'java.io.*' 5
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'PrintStream' is already in scope because it is imported in this file 12
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'PrintStream' is already in scope because it is imported in this file 14
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 97
UselessParentheses Useless parentheses. 121
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 124
UselessParentheses Useless parentheses. 142
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 145
UselessParentheses Useless parentheses. 159
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 162
UselessParentheses Useless parentheses. 176
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 179
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 199
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 299
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 365
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 388
UselessParentheses Useless parentheses. 416
org/apache/maven/surefire/group/parse/SimpleCharStream.java
Rule Violation Line
UselessParentheses Useless parentheses. 63
UselessParentheses Useless parentheses. 76
UselessParentheses Useless parentheses. 151
UselessParentheses Useless parentheses. 161

Files

org/apache/maven/surefire/group/parse/GroupMatcherParser.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 32
UnnecessarySemicolon Unnecessary semicolon 3 82
UnnecessarySemicolon Unnecessary semicolon 3 102
UnnecessarySemicolon Unnecessary semicolon 3 110
UnnecessarySemicolon Unnecessary semicolon 3 129
UselessParentheses Useless parentheses. 4 175
UselessParentheses Useless parentheses. 4 183
UselessParentheses Useless parentheses. 4 191
UselessParentheses Useless parentheses. 4 199
UselessParentheses Useless parentheses. 4 207
UselessParentheses Useless parentheses. 4 215
UselessParentheses Useless parentheses. 4 223
UselessParentheses Useless parentheses. 4 231
UselessParentheses Useless parentheses. 4 239
UselessParentheses Useless parentheses. 4 247
UselessParentheses Useless parentheses. 4 255
UselessParentheses Useless parentheses. 4 263
UselessParentheses Useless parentheses. 4 271
UnusedPrivateField Avoid unused private fields such as 'jj_ntk'. 3 436
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 4 453
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 4 457
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'UnsupportedEncodingException' is already in scope because it is imported in this file 4 458
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 4 467
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'InputStream' is already in scope because it is imported in this file 4 471
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'UnsupportedEncodingException' is already in scope because it is imported in this file 4 472
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'Reader' is already in scope because it is imported in this file 4 482
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'Reader' is already in scope because it is imported in this file 4 492
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.lang': 'Error' is already in scope because it is declared in java.lang 4 552
UnusedPrivateMethod Avoid unused private methods such as 'jj_ntk_f()'. 3 600
UselessParentheses Useless parentheses. 4 602
UselessParentheses Useless parentheses. 4 604

org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java

Rule Violation Priority Line
UnnecessaryImport Unused import 'org.apache.maven.surefire.group.match.*' 4 4
UnnecessaryImport Unused import 'java.io.*' 4 5
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'PrintStream' is already in scope because it is imported in this file 4 12
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'PrintStream' is already in scope because it is imported in this file 4 14
UnnecessaryModifier Unnecessary modifier 'final' on method 'jjStopStringLiteralDfa_0': private methods cannot be overridden 3 15
UnnecessaryModifier Unnecessary modifier 'final' on method 'jjStartNfa_0': private methods cannot be overridden 3 63
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 97
UselessParentheses Useless parentheses. 4 121
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 124
UselessParentheses Useless parentheses. 4 142
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 145
UselessParentheses Useless parentheses. 4 159
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 162
UselessParentheses Useless parentheses. 4 176
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 179
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 199
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 233
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 280
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 299
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 365
AvoidUsingOctalValues Do not start a literal by 0 unless its an octal value 3 373
UnnecessaryFullyQualifiedName Unnecessary qualifier 'java.io': 'IOException' is already in scope because it is imported in this file 4 388
UselessParentheses Useless parentheses. 4 416

org/apache/maven/surefire/group/parse/ParseException.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 131140

org/apache/maven/surefire/group/parse/SimpleCharStream.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 63
UselessParentheses Useless parentheses. 4 76
UnnecessaryReturn Unnecessary return statement 3 123
UselessParentheses Useless parentheses. 4 151
UselessParentheses Useless parentheses. 4 161

Suppressed Violations

Filename Rule message Suppression type Reason
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java Avoid unused local variables such as 'i2'. @suppresswarnings
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java Avoid unused local variables such as 'l2'. @suppresswarnings
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java Avoid unused private methods such as 'jjAddStates(int, int)'. @suppresswarnings
org/apache/maven/surefire/group/parse/GroupMatcherParserTokenManager.java Avoid unused private methods such as 'jjCheckNAddTwoStates(int, int)'. @suppresswarnings
org/apache/maven/surefire/group/parse/TokenMgrError.java Useless parentheses. @suppresswarnings
org/apache/maven/surefire/group/parse/TokenMgrError.java Overriding method merely calls super @suppresswarnings