Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 256 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 106 |
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 114 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 114 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 39–80 |
Rule | Violation | Ligne |
---|---|---|
FormalParameterNamingConventions | The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' | 86 |
FormalParameterNamingConventions | The method parameter name 'id_entry_tos' doesn't match '[a-z][a-zA-Z0-9]*' | 142 |
FormalParameterNamingConventions | The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' | 144 |
FormalParameterNamingConventions | The method parameter name 'fk_id_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 170 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The field name 'nIdTermOfService' doesn't match '_[a-z][a-zA-Z0-9]*' | 47 |
FieldNamingConventions | The field name 'strGuid' doesn't match '_[a-z][a-zA-Z0-9]*' | 48 |
FieldNamingConventions | The field name 'nId' doesn't match '_[a-z][a-zA-Z0-9]*' | 49 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'ClientRS' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 51–114 |
Rule | Violation | Ligne |
---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 219–221 |
Rule | Violation | Ligne |
---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 227–229 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like ID | 46 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 116 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 194 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 44–80 |
CommentRequired | Public method and constructor comments are required | 52–54 |
CommentRequired | Public method and constructor comments are required | 56–58 |
CommentRequired | Public method and constructor comments are required | 60–62 |
CommentRequired | Public method and constructor comments are required | 64–66 |
CommentRequired | Public method and constructor comments are required | 68–70 |
CommentRequired | Public method and constructor comments are required | 72–74 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 51–114 |
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. | 51–114 |
CommentRequired | Public method and constructor comments are required | 55–80 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 63 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 63 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'user' | 72 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 74 |
CommentRequired | Public method and constructor comments are required | 82–112 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 88 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 92 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 92 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'user' | 104 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 106 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 50–110 |
DefaultPackage | Use explicit scoping instead of the default package private level | 109 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier | 109 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 63–299 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 121 |
DefaultPackage | Use explicit scoping instead of the default package private level | 138–147 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier | 139–147 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 166 |
Rule | Violation | Ligne |
---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 72–221 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 114 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 188 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 47–72 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier | 49 |
DefaultPackage | Use explicit scoping instead of the default package private level | 49 |
CommentRequired | Public method and constructor comments are required | 51–64 |
SimplifyBooleanReturns | Avoid unnecessary if..then..else statements when returning booleans | 55–62 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'javax.validation.constraints.Size' | 36 |
Rule | Violation | Ligne |
---|---|---|
UnusedImports | Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' | 39 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'javax.validation.constraints.Size' | 4 | 36 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 219–221 |
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 256 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 106 |
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 114 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FormalParameterNamingConventions | The method parameter name '_plugin' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 114 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 227–229 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 39–80 |
ShortVariable | Avoid variables with short names like ID | 3 | 46 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FormalParameterNamingConventions | The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 86 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 116 |
FormalParameterNamingConventions | The method parameter name 'id_entry_tos' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 142 |
FormalParameterNamingConventions | The method parameter name 'header_security' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 144 |
FormalParameterNamingConventions | The method parameter name 'fk_id_entry' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 170 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 194 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 44–80 |
FieldNamingConventions | The field name 'nIdTermOfService' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 47 |
FieldNamingConventions | The field name 'strGuid' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 48 |
FieldNamingConventions | The field name 'nId' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 49 |
CommentRequired | Public method and constructor comments are required | 3 | 52–54 |
CommentRequired | Public method and constructor comments are required | 3 | 56–58 |
CommentRequired | Public method and constructor comments are required | 3 | 60–62 |
CommentRequired | Public method and constructor comments are required | 3 | 64–66 |
CommentRequired | Public method and constructor comments are required | 3 | 68–70 |
CommentRequired | Public method and constructor comments are required | 3 | 72–74 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 51–114 |
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 | 51–114 |
ClassNamingConventions | The utility class name 'ClientRS' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 51–114 |
CommentRequired | Public method and constructor comments are required | 3 | 55–80 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 63 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 63 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'user' | 3 | 72 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 74 |
CommentRequired | Public method and constructor comments are required | 3 | 82–112 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 88 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 92 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 92 |
UnnecessaryLocalBeforeReturn | Consider simply returning the value vs storing it in local variable 'user' | 3 | 104 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 50–110 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 109 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier | 3 | 109 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 63–299 |
NullAssignment | Assigning an Object to null is a code smell. Consider refactoring. | 3 | 121 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 138–147 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the getItemsFromIds method if you want a default access modifier | 3 | 139–147 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 166 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
MissingSerialVersionUID | Classes implementing Serializable should set a serialVersionUID | 3 | 72–221 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 114 |
PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 188 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnusedImports | Avoid unused imports such as 'org.apache.commons.lang3.StringUtils' | 4 | 39 |
CommentRequired | Header comments are required | 3 | 47–72 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the _biPredicate field if you want a default access modifier | 3 | 49 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 49 |
CommentRequired | Public method and constructor comments are required | 3 | 51–64 |
SimplifyBooleanReturns | Avoid unnecessary if..then..else statements when returning booleans | 3 | 55–62 |