PMD Results
The following document contains the results of PMD 5.3.5.
Files
fr/paris/lutece/plugins/jmx/mbeans/caches/CacheMBeansExporter.java
Violation |
Line |
The String literal "descriptorType=attribute" appears 4 times in this file; the first occurrence is on line 65 |
65 |
fr/paris/lutece/plugins/jmx/mbeans/caches/CacheManagedResource.java
Violation |
Line |
Private field '_cs' could be made final; it is only initialized in the declaration or constructor. |
46 |
Avoid variables with short names like cs |
52 |
fr/paris/lutece/plugins/jmx/mbeans/plugins/PluginManagedResource.java
Violation |
Line |
Private field '_plugin' could be made final; it is only initialized in the declaration or constructor. |
51 |
fr/paris/lutece/plugins/jmx/service/JMXService.java
Violation |
Line |
The class 'JMXService' has a Standard Cyclomatic Complexity of 6 (Highest = 10). |
62–189 |
The class 'JMXService' has a Cyclomatic Complexity of 6 (Highest = 10). |
62–189 |
The class 'JMXService' has a Modified Cyclomatic Complexity of 6 (Highest = 10). |
62–189 |
Private field '_mbs' could be made final; it is only initialized in the declaration or constructor. |
65 |
The method 'registerMBeans' has a Cyclomatic Complexity of 10. |
88–134 |
The method 'registerMBeans' has a Standard Cyclomatic Complexity of 10. |
88–134 |
The method 'registerMBeans' has a Modified Cyclomatic Complexity of 10. |
88–134 |
Avoid variables with short names like sb |
90 |
Avoid catching NullPointerException; consider removing the cause of the NPE. |
108 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
108 |
The String literal "JMX registering error : " appears 13 times in this file; the first occurrence is on line 110 |
110 |
Avoid variables with short names like sb |
143 |
Avoid appending characters as strings in StringBuffer.append. |
153 |
Avoid catching NullPointerException; consider removing the cause of the NPE. |
162 |
Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block |
162 |
fr/paris/lutece/plugins/jmx/service/ResourceMBeansScannerDaemon.java
Violation |
Line |
Private field '_service' could be made final; it is only initialized in the declaration or constructor. |
43 |