Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_attributes' could be made final; it is only initialized in the declaration or constructor. | 51 |
CommentRequired | Public method and constructor comments are required | 142–145 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 209 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'strInstanceName' | 211 |
Rule | Violation | Ligne |
---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 43 |
ImmutableField | Private field '_strPrefix' could be made final; it is only initialized in the declaration or constructor. | 44 |
ImmutableField | Private field '_bIsDaoType' could be made final; it is only initialized in the declaration or constructor. | 45 |
ImmutableField | Private field '_strImport' could be made final; it is only initialized in the declaration or constructor. | 46 |
ImmutableField | Private field '_strTestInitValueFormat' could be made final; it is only initialized in the declaration or constructor. | 47 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like bo | 68 |
ShortVariable | Avoid variables with short names like i | 88 |
AssignmentInOperand | Avoid assignments in operands | 90 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'strTemplate' | 110 |
Rule | Violation | Ligne |
---|---|---|
UseUtilityClass | All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. | 47–173 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 48 |
CommentRequired | Public method and constructor comments are required | 67–97 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 78 |
ShortVariable | Avoid variables with short names like jt | 79 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 80–95 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 107 |
ShortVariable | Avoid variables with short names like jt | 108 |
ShortVariable | Avoid variables with short names like c | 132 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 134 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 144 |
ShortVariable | Avoid variables with short names like c | 168 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 127 |
ShortVariable | Avoid variables with short names like bo | 151 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 165 |
ShortVariable | Avoid variables with short names like bo | 181 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 193 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 199 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_attributes' could be made final; it is only initialized in the declaration or constructor. | 3 | 51 |
CommentRequired | Public method and constructor comments are required | 3 | 142–145 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 209 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'strInstanceName' | 3 | 211 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ImmutableField | Private field '_strName' could be made final; it is only initialized in the declaration or constructor. | 3 | 43 |
ImmutableField | Private field '_strPrefix' could be made final; it is only initialized in the declaration or constructor. | 3 | 44 |
ImmutableField | Private field '_bIsDaoType' could be made final; it is only initialized in the declaration or constructor. | 3 | 45 |
ImmutableField | Private field '_strImport' could be made final; it is only initialized in the declaration or constructor. | 3 | 46 |
ImmutableField | Private field '_strTestInitValueFormat' could be made final; it is only initialized in the declaration or constructor. | 3 | 47 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ShortVariable | Avoid variables with short names like bo | 3 | 68 |
ShortVariable | Avoid variables with short names like i | 3 | 88 |
AssignmentInOperand | Avoid assignments in operands | 3 | 90 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'strTemplate' | 3 | 110 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseUtilityClass | All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. | 3 | 47–173 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 48 |
CommentRequired | Public method and constructor comments are required | 3 | 67–97 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 78 |
ShortVariable | Avoid variables with short names like jt | 3 | 79 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 80–95 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 107 |
ShortVariable | Avoid variables with short names like jt | 3 | 108 |
ShortVariable | Avoid variables with short names like c | 3 | 132 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 134 |
UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 144 |
ShortVariable | Avoid variables with short names like c | 3 | 168 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 127 |
ShortVariable | Avoid variables with short names like bo | 3 | 151 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 165 |
ShortVariable | Avoid variables with short names like bo | 3 | 181 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 193 |
AvoidLiteralsInIfCondition | Avoid using Literals in Conditional Statements | 3 | 199 |