Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 34–340 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 90 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 115 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 116 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 117 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 133 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 143 |
UnnecessaryWrapperObjectCreation | Unnecessary wrapper object creation | 165 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 185–192 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 200 |
IdenticalCatchBranches | 'catch' branch identical to 'SAXException' branch | 202–205 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 204 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 231–258 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 243 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 255 |
ShortVariable | Avoid variables with short names like sb | 263 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 306 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'lstFields' | 307 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 316 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'lstItems' | 317 |
ShortVariable | Avoid variables with short names like sb | 335 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'javassist.expr.NewArray' | 51 |
UnusedImports | Avoid unused imports such as 'java.text.Normalizer' | 62 |
UnusedImports | Avoid unused imports such as 'java.util.regex.Pattern' | 69 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ExcessiveImports | A high number of imports can indicate a high degree of coupling within an object. | 3 | 34–340 |
UnusedImports | Avoid unused imports such as 'javassist.expr.NewArray' | 4 | 51 |
UnusedImports | Avoid unused imports such as 'java.text.Normalizer' | 4 | 62 |
UnusedImports | Avoid unused imports such as 'java.util.regex.Pattern' | 4 | 69 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 90 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 115 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 116 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 117 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 133 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 143 |
UnnecessaryWrapperObjectCreation | Unnecessary wrapper object creation | 3 | 165 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 185–192 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 200 |
IdenticalCatchBranches | 'catch' branch identical to 'SAXException' branch | 3 | 202–205 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 204 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 231–258 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 243 |
AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 255 |
ShortVariable | Avoid variables with short names like sb | 3 | 263 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 306 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'lstFields' | 3 | 307 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 316 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'lstItems' | 3 | 317 |
ShortVariable | Avoid variables with short names like sb | 3 | 335 |