PMD Results
The following document contains the results of PMD 6.13.0.
Violations By Priority
Priority 3
fr/paris/lutece/plugins/accesscontrol/business/AccessControl.java
| Rule |
Violation |
Line |
| MissingOverride |
The method 'getWorkgroup()' is missing an @Override annotation. |
188–191 |
fr/paris/lutece/plugins/accesscontrol/business/AccessControlDAO.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlFilter.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlResource.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlResourceDAO.java
| Rule |
Violation |
Line |
| ShortVariable |
Avoid variables with short names like id |
92 |
fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerData.java
fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerDataHome.java
fr/paris/lutece/plugins/accesscontrol/service/AbstractPersistentAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/AbstractUserCodeAccessControllerType.java
| Rule |
Violation |
Line |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
92 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
111 |
| CommentRequired |
Protected method constructor comments are required |
136 |
| CommentRequired |
Protected method constructor comments are required |
138 |
fr/paris/lutece/plugins/accesscontrol/service/AccessControlService.java
fr/paris/lutece/plugins/accesscontrol/service/AgeAccessControllerType.java
| Rule |
Violation |
Line |
| CommentRequired |
Header comments are required |
57–182 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
112 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
123 |
fr/paris/lutece/plugins/accesscontrol/service/CommentAccessControllerType.java
| Rule |
Violation |
Line |
| CommentRequired |
Header comments are required |
51–123 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
100 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
118 |
fr/paris/lutece/plugins/accesscontrol/service/IAccessControlService.java
fr/paris/lutece/plugins/accesscontrol/service/IAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/IPersistentDataHandler.java
fr/paris/lutece/plugins/accesscontrol/service/LuteceUserCodeAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/TosAccessControllerType.java
| Rule |
Violation |
Line |
| CommentRequired |
Header comments are required |
51–137 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
102 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
121 |
fr/paris/lutece/plugins/accesscontrol/service/UserCodeAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlRbacAction.java
fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlResourceIdService.java
| Rule |
Violation |
Line |
| DataClass |
The class 'AccessControlResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) |
48–123 |
| CommentRequired |
Header comments are required |
48–123 |
fr/paris/lutece/plugins/accesscontrol/util/BoolCondition.java
fr/paris/lutece/plugins/accesscontrol/web/AccessControlJspBean.java
| Rule |
Violation |
Line |
| ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
34–600 |
| ImmutableField |
Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. |
143 |
| NullAssignment |
Assigning an Object to null is a code smell. Consider refactoring. |
158 |
| ConfusingTernary |
Avoid if (x != y) ..; else ..; |
175 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
283 |
fr/paris/lutece/plugins/accesscontrol/web/AccessControlXPage.java
fr/paris/lutece/plugins/accesscontrol/web/UserCodeControllerJspBean.java
| Rule |
Violation |
Line |
| ImmutableField |
Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. |
90 |
| CommentRequired |
Public method and constructor comments are required |
111–114 |
| CommentRequired |
Public method and constructor comments are required |
117–148 |
Files
fr/paris/lutece/plugins/accesscontrol/business/AccessControl.java
| Rule |
Violation |
Priority |
Line |
| MissingOverride |
The method 'getWorkgroup()' is missing an @Override annotation. |
3 |
188–191 |
fr/paris/lutece/plugins/accesscontrol/business/AccessControlDAO.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlFilter.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlResource.java
fr/paris/lutece/plugins/accesscontrol/business/AccessControlResourceDAO.java
| Rule |
Violation |
Priority |
Line |
| ShortVariable |
Avoid variables with short names like id |
3 |
92 |
fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerData.java
fr/paris/lutece/plugins/accesscontrol/business/UserCodeControllerDataHome.java
fr/paris/lutece/plugins/accesscontrol/service/AbstractPersistentAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/AbstractUserCodeAccessControllerType.java
| Rule |
Violation |
Priority |
Line |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
92 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
111 |
| CommentRequired |
Protected method constructor comments are required |
3 |
136 |
| CommentRequired |
Protected method constructor comments are required |
3 |
138 |
fr/paris/lutece/plugins/accesscontrol/service/AccessControlService.java
fr/paris/lutece/plugins/accesscontrol/service/AgeAccessControllerType.java
| Rule |
Violation |
Priority |
Line |
| CommentRequired |
Header comments are required |
3 |
57–182 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
112 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
123 |
fr/paris/lutece/plugins/accesscontrol/service/CommentAccessControllerType.java
| Rule |
Violation |
Priority |
Line |
| CommentRequired |
Header comments are required |
3 |
51–123 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
100 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
118 |
fr/paris/lutece/plugins/accesscontrol/service/IAccessControlService.java
fr/paris/lutece/plugins/accesscontrol/service/IAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/IPersistentDataHandler.java
fr/paris/lutece/plugins/accesscontrol/service/LuteceUserCodeAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/TosAccessControllerType.java
| Rule |
Violation |
Priority |
Line |
| CommentRequired |
Header comments are required |
3 |
51–137 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
102 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
121 |
fr/paris/lutece/plugins/accesscontrol/service/UserCodeAccessControllerType.java
fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlRbacAction.java
fr/paris/lutece/plugins/accesscontrol/service/rbac/AccessControlResourceIdService.java
| Rule |
Violation |
Priority |
Line |
| DataClass |
The class 'AccessControlResourceIdService' is suspected to be a Data Class (WOC=0.000%, NOPA=4, NOAM=0, WMC=1) |
3 |
48–123 |
| CommentRequired |
Header comments are required |
3 |
48–123 |
fr/paris/lutece/plugins/accesscontrol/util/BoolCondition.java
fr/paris/lutece/plugins/accesscontrol/web/AccessControlJspBean.java
| Rule |
Violation |
Priority |
Line |
| ExcessiveImports |
A high number of imports can indicate a high degree of coupling within an object. |
3 |
34–600 |
| ImmutableField |
Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. |
3 |
143 |
| NullAssignment |
Assigning an Object to null is a code smell. Consider refactoring. |
3 |
158 |
| ConfusingTernary |
Avoid if (x != y) ..; else ..; |
3 |
175 |
| UseConcurrentHashMap |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
3 |
283 |
fr/paris/lutece/plugins/accesscontrol/web/AccessControlXPage.java
fr/paris/lutece/plugins/accesscontrol/web/UserCodeControllerJspBean.java
| Rule |
Violation |
Priority |
Line |
| ImmutableField |
Private field '_accessControlService' could be made final; it is only initialized in the declaration or constructor. |
3 |
90 |
| CommentRequired |
Public method and constructor comments are required |
3 |
111–114 |
| CommentRequired |
Public method and constructor comments are required |
3 |
117–148 |