Le document suivant contient les résultats de PMD 6.13.0.
| Rule | Violation | Ligne |
|---|---|---|
| FieldNamingConventions | The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' | 62 |
| FieldNamingConventions | The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' | 63 |
| FieldNamingConventions | The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' | 64 |
| FieldNamingConventions | The final field name '_formsPDFTaskTemplate' doesn't match '[a-z][a-zA-Z0-9]*' | 65 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 174 |
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 180 |
| Rule | Violation | Ligne |
|---|---|---|
| FieldNamingConventions | The constant name '_formsPDFTaskConfigService' doesn't match '[A-Z][A-Z_0-9]*' | 81 |
| FieldNamingConventions | The constant name '_resourceHistoryService' doesn't match '[A-Z][A-Z_0-9]*' | 86 |
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 136 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 203 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 212 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 226 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidDuplicateLiterals | The String literal "resource" appears 4 times in this file; the first occurrence is on line 73 | 73 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 36–96 |
| CommentRequired | Public method and constructor comments are required | 50–52 |
| CommentRequired | Public method and constructor comments are required | 54–56 |
| CommentRequired | Public method and constructor comments are required | 58–60 |
| CommentRequired | Public method and constructor comments are required | 62–64 |
| CommentRequired | Public method and constructor comments are required | 66–68 |
| CommentRequired | Public method and constructor comments are required | 70–72 |
| CommentRequired | Public method and constructor comments are required | 74–76 |
| CommentRequired | Public method and constructor comments are required | 78–80 |
| CommentRequired | Public method and constructor comments are required | 82–84 |
| CommentRequired | Public method and constructor comments are required | 86–88 |
| CommentRequired | Public method and constructor comments are required | 89–91 |
| CommentRequired | Public method and constructor comments are required | 92–94 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 44–207 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 36–52 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 40–42 |
| CommentRequired | Public method and constructor comments are required | 40–42 |
| CommentRequired | Public method and constructor comments are required | 44–46 |
| CommentRequired | Public method and constructor comments are required | 48–50 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 40–86 |
| CommentRequired | Public method and constructor comments are required | 49–53 |
| CommentRequired | Public method and constructor comments are required | 55–59 |
| CommentRequired | Public method and constructor comments are required | 61–64 |
| CommentRequired | Public method and constructor comments are required | 66–69 |
| CommentRequired | Public method and constructor comments are required | 71–74 |
| CommentRequired | Public method and constructor comments are required | 76–79 |
| CommentRequired | Public method and constructor comments are required | 81–84 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 38–54 |
| CommentRequired | Public method and constructor comments are required | 40 |
| CommentRequired | Public method and constructor comments are required | 42 |
| CommentRequired | Public method and constructor comments are required | 44 |
| CommentRequired | Public method and constructor comments are required | 46 |
| CommentRequired | Public method and constructor comments are required | 48 |
| CommentRequired | Public method and constructor comments are required | 50 |
| CommentRequired | Public method and constructor comments are required | 52 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 54–117 |
| RedundantFieldInitializer | Avoid using redundant field initializer for '_configList' | 67 |
| Rule | Violation | Ligne |
|---|---|---|
| CallSuperInConstructor | It is a good practice to call super() in a constructor | 55–58 |
| Rule | Violation | Ligne |
|---|---|---|
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 77 |
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 78 |
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 79 |
| IdenticalCatchBranches | 'catch' branch identical to 'PdfConverterServiceException' branch | 176–181 |
| Rule | Violation | Ligne |
|---|---|---|
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 130 |
| Rule | Violation | Ligne |
|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 102 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 112 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 128–135 |
| Rule | Violation | Ligne |
|---|---|---|
| CommentRequired | Header comments are required | 54–235 |
| CommentRequired | Public method and constructor comments are required | 97–111 |
| UnusedLocalVariable | Avoid unused local variables such as 'locale'. | 99 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 99 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 113 |
| CommentRequired | Public method and constructor comments are required | 114–153 |
| UnusedLocalVariable | Avoid unused local variables such as 'locale'. | 116 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 116 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 150 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 155 |
| CommentRequired | Public method and constructor comments are required | 156–172 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 174 |
| CommentRequired | Public method and constructor comments are required | 175–184 |
| Rule | Violation | Ligne |
|---|---|---|
| UnusedImports | Avoid unused imports such as 'java.util.HashMap' | 39 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.provider.InfoMarker' | 60 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| AvoidDuplicateLiterals | The String literal "resource" appears 4 times in this file; the first occurrence is on line 73 | 3 | 73 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 36–96 |
| CommentRequired | Public method and constructor comments are required | 3 | 50–52 |
| CommentRequired | Public method and constructor comments are required | 3 | 54–56 |
| CommentRequired | Public method and constructor comments are required | 3 | 58–60 |
| CommentRequired | Public method and constructor comments are required | 3 | 62–64 |
| CommentRequired | Public method and constructor comments are required | 3 | 66–68 |
| CommentRequired | Public method and constructor comments are required | 3 | 70–72 |
| CommentRequired | Public method and constructor comments are required | 3 | 74–76 |
| CommentRequired | Public method and constructor comments are required | 3 | 78–80 |
| CommentRequired | Public method and constructor comments are required | 3 | 82–84 |
| CommentRequired | Public method and constructor comments are required | 3 | 86–88 |
| CommentRequired | Public method and constructor comments are required | 3 | 89–91 |
| CommentRequired | Public method and constructor comments are required | 3 | 92–94 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 44–207 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 36–52 |
| UnnecessaryConstructor | Avoid unnecessary constructors - the compiler will generate these for you | 3 | 40–42 |
| CommentRequired | Public method and constructor comments are required | 3 | 40–42 |
| CommentRequired | Public method and constructor comments are required | 3 | 44–46 |
| CommentRequired | Public method and constructor comments are required | 3 | 48–50 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 40–86 |
| CommentRequired | Public method and constructor comments are required | 3 | 49–53 |
| CommentRequired | Public method and constructor comments are required | 3 | 55–59 |
| CommentRequired | Public method and constructor comments are required | 3 | 61–64 |
| CommentRequired | Public method and constructor comments are required | 3 | 66–69 |
| CommentRequired | Public method and constructor comments are required | 3 | 71–74 |
| CommentRequired | Public method and constructor comments are required | 3 | 76–79 |
| CommentRequired | Public method and constructor comments are required | 3 | 81–84 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 38–54 |
| CommentRequired | Public method and constructor comments are required | 3 | 40 |
| CommentRequired | Public method and constructor comments are required | 3 | 42 |
| CommentRequired | Public method and constructor comments are required | 3 | 44 |
| CommentRequired | Public method and constructor comments are required | 3 | 46 |
| CommentRequired | Public method and constructor comments are required | 3 | 48 |
| CommentRequired | Public method and constructor comments are required | 3 | 50 |
| CommentRequired | Public method and constructor comments are required | 3 | 52 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 54–117 |
| FieldNamingConventions | The final field name '_formResponse' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 62 |
| FieldNamingConventions | The final field name '_fileName' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 63 |
| FieldNamingConventions | The final field name '_fileDescription' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 64 |
| FieldNamingConventions | The final field name '_formsPDFTaskTemplate' doesn't match '[a-z][a-zA-Z0-9]*' | 1 | 65 |
| RedundantFieldInitializer | Avoid using redundant field initializer for '_configList' | 3 | 67 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CallSuperInConstructor | It is a good practice to call super() in a constructor | 3 | 55–58 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 77 |
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 78 |
| FieldDeclarationsShouldBeAtStartOfClass | Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. | 3 | 79 |
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 174 |
| IdenticalCatchBranches | 'catch' branch identical to 'PdfConverterServiceException' branch | 3 | 176–181 |
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 180 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UnusedImports | Avoid unused imports such as 'java.util.HashMap' | 4 | 39 |
| UnusedImports | Avoid unused imports such as 'fr.paris.lutece.plugins.workflowcore.service.provider.InfoMarker' | 4 | 60 |
| FieldNamingConventions | The constant name '_formsPDFTaskConfigService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 81 |
| FieldNamingConventions | The constant name '_resourceHistoryService' doesn't match '[A-Z][A-Z_0-9]*' | 1 | 86 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 130 |
| AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 136 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 2 | 203 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 102 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 112 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 128–135 |
| Rule | Violation | Priority | Ligne |
|---|---|---|---|
| CommentRequired | Header comments are required | 3 | 54–235 |
| CommentRequired | Public method and constructor comments are required | 3 | 97–111 |
| UnusedLocalVariable | Avoid unused local variables such as 'locale'. | 3 | 99 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 99 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 113 |
| CommentRequired | Public method and constructor comments are required | 3 | 114–153 |
| UnusedLocalVariable | Avoid unused local variables such as 'locale'. | 3 | 116 |
| PrematureDeclaration | Avoid declaring a variable if it is unreferenced before a possible exit point. | 3 | 116 |
| ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 150 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 155 |
| CommentRequired | Public method and constructor comments are required | 3 | 156–172 |
| UnnecessaryAnnotationValueElement | Avoid the use of value in annotations when its the only element | 3 | 174 |
| CommentRequired | Public method and constructor comments are required | 3 | 175–184 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 2 | 212 |
| AvoidReassigningParameters | Avoid reassigning parameters such as 'strtemplate' | 2 | 226 |