Le document suivant contient les résultats de PMD 6.13.0.
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The field name 'df' doesn't match '_[a-z][a-zA-Z0-9]*' | 56 |
Rule | Violation | Ligne |
---|---|---|
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 150 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 154 |
Rule | Violation | Ligne |
---|---|---|
FieldNamingConventions | The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' | 64 |
Rule | Violation | Ligne |
---|---|---|
ClassNamingConventions | The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 3–46 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 3–46 |
Rule | Violation | Ligne |
---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 38–60 |
FieldNamingConventions | The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' | 40 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 59 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 67 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 90 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 61 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 93 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 107 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 122 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 137 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 151 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 59 |
Rule | Violation | Ligne |
---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 63 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 102 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 139 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 11–235 |
UnusedPrivateField | Avoid unused private fields such as '_strValueMinComplete'. | 41 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 11–102 |
Rule | Violation | Ligne |
---|---|---|
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 44–89 |
Rule | Violation | Ligne |
---|---|---|
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 68 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 72 |
AvoidDuplicateLiterals | The String literal "2000-01-01 00:00:00" appears 7 times in this file; the first occurrence is on line 78 | 78 |
AvoidDuplicateLiterals | The String literal "1943-01-01 00:00:00" appears 6 times in this file; the first occurrence is on line 79 | 79 |
AvoidDuplicateLiterals | The String literal "Toulon" appears 5 times in this file; the first occurrence is on line 94 | 94 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 94 |
NcssCount | The method 'getListCitesByNameAndDateLike(String, Date)' has a NCSS line count of 72. | 113–207 |
AvoidDuplicateLiterals | The String literal "2050-01-01 00:00:00" appears 5 times in this file; the first occurrence is on line 124 | 124 |
AvoidDuplicateLiterals | The String literal "Villefranche" appears 6 times in this file; the first occurrence is on line 147 | 147 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 217 |
Rule | Violation | Ligne |
---|---|---|
ShortVariable | Avoid variables with short names like df | 56 |
DefaultPackage | Use explicit scoping instead of the default package private level | 56 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 56 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the df field if you want a default access modifier | 56 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 94 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 108 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 123 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 138 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 152 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Public method and constructor comments are required | 64–67 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 92 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 123 |
ShortVariable | Avoid variables with short names like e | 141 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 141 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 165 |
MissingOverride | The method 'setApiEndPointUrl(String)' is missing an @Override annotation. | 175–179 |
MissingOverride | The method 'getApiEndPointUrl()' is missing an @Override annotation. | 186–190 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 214 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 245 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 254 |
Rule | Violation | Ligne |
---|---|---|
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 98 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 104 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 104 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 105 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 113 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 120 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 3–46 |
Rule | Violation | Ligne |
---|---|---|
CommentRequired | Header comments are required | 38–60 |
CommentRequired | Public method and constructor comments are required | 42–49 |
NonThreadSafeSingleton | Singleton is not thread safe | 44–47 |
ShortVariable | Avoid variables with short names like i | 56 |
Rule | Violation | Ligne |
---|---|---|
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 92 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 107 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 122 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 135 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 148 |
Rule | Violation | Ligne |
---|---|---|
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 58 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 70 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 82 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 94 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 106 |
Rule | Violation | Ligne |
---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'setApiEndPointUrl': the method is declared in an interface type | 52 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'getApiEndPointUrl': the method is declared in an interface type | 59 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'doGet': the method is declared in an interface type | 61–63 |
CommentRequired | Public method and constructor comments are required | 61–63 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 63 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'doGetList': the method is declared in an interface type | 66–67 |
CommentRequired | Public method and constructor comments are required | 66–67 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 67 |
Rule | Violation | Ligne |
---|---|---|
ShortClassName | Avoid short class names like City | 11–235 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 11–235 |
ShortClassName | Avoid short class names like City | 4 | 11–235 |
UnusedPrivateField | Avoid unused private fields such as '_strValueMinComplete'. | 3 | 41 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
CommentRequired | Header comments are required | 3 | 11–102 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
AbstractClassWithoutAbstractMethod | This abstract class does not have any abstract methods | 3 | 44–89 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 59 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 67 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 68 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 72 |
AvoidDuplicateLiterals | The String literal "2000-01-01 00:00:00" appears 7 times in this file; the first occurrence is on line 78 | 3 | 78 |
AvoidDuplicateLiterals | The String literal "1943-01-01 00:00:00" appears 6 times in this file; the first occurrence is on line 79 | 3 | 79 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 90 |
AvoidDuplicateLiterals | The String literal "Toulon" appears 5 times in this file; the first occurrence is on line 94 | 3 | 94 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 94 |
NcssCount | The method 'getListCitesByNameAndDateLike(String, Date)' has a NCSS line count of 72. | 3 | 113–207 |
AvoidDuplicateLiterals | The String literal "2050-01-01 00:00:00" appears 5 times in this file; the first occurrence is on line 124 | 3 | 124 |
AvoidDuplicateLiterals | The String literal "Villefranche" appears 6 times in this file; the first occurrence is on line 147 | 3 | 147 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 217 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
FieldNamingConventions | The field name 'df' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 56 |
ShortVariable | Avoid variables with short names like df | 3 | 56 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 56 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 56 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the df field if you want a default access modifier | 3 | 56 |
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 61 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 93 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 94 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 107 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 108 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 122 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 123 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 137 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 138 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 151 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 152 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 59 |
CommentRequired | Public method and constructor comments are required | 3 | 64–67 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 92 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 123 |
ShortVariable | Avoid variables with short names like e | 3 | 141 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 141 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 150 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 154 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 165 |
MissingOverride | The method 'setApiEndPointUrl(String)' is missing an @Override annotation. | 3 | 175–179 |
MissingOverride | The method 'getApiEndPointUrl()' is missing an @Override annotation. | 3 | 186–190 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 214 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 245 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 254 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
LoggerIsNotStaticFinal | The Logger variable declaration does not contain the static and final modifiers | 2 | 63 |
FieldNamingConventions | The constant name '_objectMapper' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 64 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 98 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 102 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 104 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 104 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 105 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 105 |
UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 113 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 120 |
GuardLogStatement | Logger calls should be surrounded by log level guards. | 2 | 139 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassNamingConventions | The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' | 1 | 3–46 |
CommentRequired | Header comments are required | 3 | 3–46 |
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 3–46 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
ClassWithOnlyPrivateConstructorsShouldBeFinal | A class which only has private constructors should be final | 1 | 38–60 |
CommentRequired | Header comments are required | 3 | 38–60 |
FieldNamingConventions | The static field name 'instance' doesn't match '_[a-z][a-zA-Z0-9]*' | 1 | 40 |
CommentRequired | Public method and constructor comments are required | 3 | 42–49 |
NonThreadSafeSingleton | Singleton is not thread safe | 3 | 44–47 |
ShortVariable | Avoid variables with short names like i | 3 | 56 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 92 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 107 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 122 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 135 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 148 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 58 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 70 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 82 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 94 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 106 |
Rule | Violation | Priority | Ligne |
---|---|---|---|
UnnecessaryModifier | Unnecessary modifier 'public' on method 'setApiEndPointUrl': the method is declared in an interface type | 3 | 52 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'getApiEndPointUrl': the method is declared in an interface type | 3 | 59 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'doGet': the method is declared in an interface type | 3 | 61–63 |
CommentRequired | Public method and constructor comments are required | 3 | 61–63 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 63 |
UnnecessaryModifier | Unnecessary modifier 'public' on method 'doGetList': the method is declared in an interface type | 3 | 66–67 |
CommentRequired | Public method and constructor comments are required | 3 | 66–67 |
SignatureDeclareThrowsException | A method/constructor should not explicitly throw java.lang.Exception | 3 | 67 |