PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 3
fr/paris/lutece/plugins/extend/modules/statistics/business/ResourceExtenderStatsDAO.java
fr/paris/lutece/plugins/extend/modules/statistics/web/StatisticsJspBean.java
Rule |
Violation |
Line |
ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
34–218 |
MissingSerialVersionUID |
Classes implementing Serializable should set a serialVersionUID |
76–218 |
ImmutableField |
Private field '_resourceTypeService' could be made final; it is only initialized in the declaration or constructor. |
109 |
ImmutableField |
Private field '_resourceExtenderService' could be made final; it is only initialized in the declaration or constructor. |
110 |
ImmutableField |
Private field '_statService' could be made final; it is only initialized in the declaration or constructor. |
111 |
ImmutableField |
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. |
115 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
179–181 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
183 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
183 |
Files
fr/paris/lutece/plugins/extend/modules/statistics/business/ResourceExtenderStatsDAO.java
Rule |
Violation |
Priority |
Line |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
64 |
ShortVariable |
Avoid variables with short names like rs |
3 |
97 |
CloseResource |
Ensure that resources like this ResultSet object are closed after use |
3 |
97 |
fr/paris/lutece/plugins/extend/modules/statistics/web/StatisticsJspBean.java
Rule |
Violation |
Priority |
Line |
ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
3 |
34–218 |
MissingSerialVersionUID |
Classes implementing Serializable should set a serialVersionUID |
3 |
76–218 |
ImmutableField |
Private field '_resourceTypeService' could be made final; it is only initialized in the declaration or constructor. |
3 |
109 |
ImmutableField |
Private field '_resourceExtenderService' could be made final; it is only initialized in the declaration or constructor. |
3 |
110 |
ImmutableField |
Private field '_statService' could be made final; it is only initialized in the declaration or constructor. |
3 |
111 |
ImmutableField |
Private field '_nDefaultItemsPerPage' could be made final; it is only initialized in the declaration or constructor. |
3 |
115 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
179–181 |
UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
183 |
UseDiamondOperator |
Explicit type arguments can be replaced by Diamond Operator |
3 |
183 |