Résultats PMD
Le document suivant contient les résultats de PMD 5.5.1.
Fichiers
fr/paris/lutece/plugins/workflow/modules/state/daemon/ChooseStateDaemon.java
Violation |
Ligne |
The class 'ChooseStateDaemon' has a Cyclomatic Complexity of 11 (Highest = 10). |
28–95 |
Private field '_chooseStateTask' could be made final; it is only initialized in the declaration or constructor. |
31 |
Private field '_chooseStateTaskService' could be made final; it is only initialized in the declaration or constructor. |
32 |
Private field '_workflowService' could be made final; it is only initialized in the declaration or constructor. |
33 |
Private field '_resourceWorkflowService' could be made final; it is only initialized in the declaration or constructor. |
34 |
Private field '_actionService' could be made final; it is only initialized in the declaration or constructor. |
35 |
Private field '_taskService' could be made final; it is only initialized in the declaration or constructor. |
36 |
The method 'run' has a Cyclomatic Complexity of 10. |
39–93 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
85 |
fr/paris/lutece/plugins/workflow/modules/state/service/task/ChooseStateTask.java
Violation |
Ligne |
Document empty method |
24–25 |
fr/paris/lutece/plugins/workflow/modules/state/web/task/ChooseStateTaskComponent.java
Violation |
Ligne |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
40 |
If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation |
54 |
Avoid declaring a variable if it is unreferenced before a possible exit point. |
54 |