Fork me on GitHub

PMD Results

The following document contains the results of PMD 6.13.0.

Violations By Priority

Priority 1

fr/paris/lutece/plugins/modulenotifygrumappingmanager/service/NotifygruMappingManagerService.java

Rule Violation Line
FieldNamingConventions The static field name 'MESSAGE_MAPPING_NONE' doesn't match '_[a-z][a-zA-Z0-9]*' 17

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/rs/Constants.java

Rule Violation Line
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 3746

Priority 2

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/NotifygruMappingManagerJspBean.java

Rule Violation Line
GuardLogStatement Logger calls should be surrounded by log level guards. 341342

Priority 3

fr/paris/lutece/plugins/modulenotifygrumappingmanager/business/NotifygruMappingManagerHome.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 114117

fr/paris/lutece/plugins/modulenotifygrumappingmanager/service/NotifygruMappingManagerService.java

Rule Violation Line
CommentRequired Header comments are required 1355
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. 1455
CommentRequired Public method and constructor comments are required 1935
CommentRequired Public method and constructor comments are required 3753
SimplifyConditional No need to check for null before an instanceof 47

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/ManageModulenotifygrumappingmanagerJspBean.java

Rule Violation Line
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 64
AddEmptyString Do not add empty strings 95

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/NotifygruMappingManagerJspBean.java

Rule Violation Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 145
ConfusingTernary Avoid if (x != y) ..; else ..; 171
ConfusingTernary Avoid if (x != y) ..; else ..; 182193
ConfusingTernary Avoid if (x != y) ..; else ..; 216
CommentRequired Protected method constructor comments are required 240271

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/rs/Constants.java

Rule Violation Line
CommentRequired Header comments are required 3746

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/rs/NotifygruMappingManagerRest.java

Rule Violation Line
CommentRequired Public method and constructor comments are required 7488
CommentRequired Public method and constructor comments are required 90119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 113

Priority 4

fr/paris/lutece/plugins/modulenotifygrumappingmanager/business/NotifygruMappingManager.java

Rule Violation Line
DuplicateImports Avoid duplicate imports such as 'javax.validation.constraints.NotEmpty' 37

Files

fr/paris/lutece/plugins/modulenotifygrumappingmanager/business/NotifygruMappingManager.java

Rule Violation Priority Line
DuplicateImports Avoid duplicate imports such as 'javax.validation.constraints.NotEmpty' 4 37

fr/paris/lutece/plugins/modulenotifygrumappingmanager/business/NotifygruMappingManagerHome.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 114117

fr/paris/lutece/plugins/modulenotifygrumappingmanager/service/NotifygruMappingManagerService.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 1355
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 1455
FieldNamingConventions The static field name 'MESSAGE_MAPPING_NONE' doesn't match '_[a-z][a-zA-Z0-9]*' 1 17
CommentRequired Public method and constructor comments are required 3 1935
CommentRequired Public method and constructor comments are required 3 3753
SimplifyConditional No need to check for null before an instanceof 3 47

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/ManageModulenotifygrumappingmanagerJspBean.java

Rule Violation Priority Line
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 64
AddEmptyString Do not add empty strings 3 95

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/NotifygruMappingManagerJspBean.java

Rule Violation Priority Line
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 140
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 145
ConfusingTernary Avoid if (x != y) ..; else ..; 3 171
ConfusingTernary Avoid if (x != y) ..; else ..; 3 182193
ConfusingTernary Avoid if (x != y) ..; else ..; 3 216
CommentRequired Protected method constructor comments are required 3 240271
GuardLogStatement Logger calls should be surrounded by log level guards. 2 341342

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/rs/Constants.java

Rule Violation Priority Line
CommentRequired Header comments are required 3 3746
ClassNamingConventions The utility class name 'Constants' doesn't match '[A-Z][a-zA-Z0-9]+(Utils?|Helper|Home|Service)' 1 3746

fr/paris/lutece/plugins/modulenotifygrumappingmanager/web/rs/NotifygruMappingManagerRest.java

Rule Violation Priority Line
CommentRequired Public method and constructor comments are required 3 7488
CommentRequired Public method and constructor comments are required 3 90119
AvoidCatchingGenericException Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block 3 113