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/sitelabels/web/ManageSiteLabelsJspBean.java

Rule Violation Line
AbstractClassWithoutAnyMethod No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 4250

Priority 3

fr/paris/lutece/plugins/sitelabels/service/LabelService.java

Rule Violation Line
AvoidDuplicateLiterals The String literal "Key does not start with " appears 4 times in this file; the first occurrence is on line 71 71
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 139

fr/paris/lutece/plugins/sitelabels/web/LabelJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 61285
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 108
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 120
AddEmptyString Do not add empty strings 136
ConfusingTernary Avoid if (x != y) ..; else ..; 152
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 274
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 274

fr/paris/lutece/plugins/sitelabels/web/ManageSiteLabelsJspBean.java

Rule Violation Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 4250

Files

fr/paris/lutece/plugins/sitelabels/service/LabelService.java

Rule Violation Priority Line
AvoidDuplicateLiterals The String literal "Key does not start with " appears 4 times in this file; the first occurrence is on line 71 3 71
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 139

fr/paris/lutece/plugins/sitelabels/web/LabelJspBean.java

Rule Violation Priority Line
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 61285
SingularField Perhaps '_nDefaultItemsPerPage' could be replaced by a local variable. 3 108
NullAssignment Assigning an Object to null is a code smell. Consider refactoring. 3 120
AddEmptyString Do not add empty strings 3 136
ConfusingTernary Avoid if (x != y) ..; else ..; 3 152
UseDiamondOperator Explicit type arguments can be replaced by Diamond Operator 3 274
UseConcurrentHashMap If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation 3 274

fr/paris/lutece/plugins/sitelabels/web/ManageSiteLabelsJspBean.java

Rule Violation Priority Line
AbstractClassWithoutAnyMethod No abstract method which means that the keyword is most likely used to prevent instantiation. Use a private or protected constructor instead. 1 4250
MissingSerialVersionUID Classes implementing Serializable should set a serialVersionUID 3 4250