PMD Results
The following document contains the results of PMD 5.3.5.
Files
cn/home1/oss/lib/errorhandle/api/ApplicationExceptions.java
Violation |
Line |
A method should have only one exit point, and that should be the last statement in the method |
59 |
Consider using varargs for methods or constructors which take an array the last parameter. |
95 |
cn/home1/oss/lib/errorhandle/api/HttpHeader.java
Violation |
Line |
Classes implementing Serializable should set a serialVersionUID |
27–76 |
cn/home1/oss/lib/errorhandle/api/ResolvedError.java
Violation |
Line |
Avoid unused imports such as 'javax.xml.bind.annotation.XmlElements' |
30 |
The String literal "error" appears 6 times in this file; the first occurrence is on line 41 |
41 |
The String literal "exception" appears 4 times in this file; the first occurrence is on line 44 |
44 |
The String literal "path" appears 4 times in this file; the first occurrence is on line 44 |
44 |
The String literal "timestamp" appears 4 times in this file; the first occurrence is on line 44 |
44 |
The String literal "status" appears 4 times in this file; the first occurrence is on line 44 |
44 |
The String literal "validationErrors" appears 5 times in this file; the first occurrence is on line 44 |
44 |
The String literal "localizedMessage" appears 4 times in this file; the first occurrence is on line 45 |
45 |
The String literal "tracks" appears 5 times in this file; the first occurrence is on line 45 |
45 |
The String literal "headers" appears 5 times in this file; the first occurrence is on line 45 |
45 |
A class which only has private constructors should be final |
55–183 |
Private field 'headers' could be made final; it is only initialized in the declaration or constructor. |
91 |
cn/home1/oss/lib/errorhandle/api/ValidationError.java
Violation |
Line |
Classes implementing Serializable should set a serialVersionUID |
39–46 |
Avoid unused private fields such as 'field'. |
41 |
Avoid unused private fields such as 'rejected'. |
43 |
Avoid unused private fields such as 'message'. |
45 |
cn/home1/oss/lib/errorhandle/internal/BaseErrorController.java
Violation |
Line |
Abstract classes should be named AbstractXXX |
36–163 |
cn/home1/oss/lib/errorhandle/internal/translator/DefaultExceptionTranslator.java
Violation |
Line |
The class 'DefaultExceptionTranslator' has a Cyclomatic Complexity of 2 (Highest = 10). |
36–168 |
The method 'find' has a Cyclomatic Complexity of 10. |
59–100 |
cn/home1/oss/lib/errorhandle/starter/ErrorHandleAutoConfiguration.java
Violation |
Line |
A high number of imports can indicate a high degree of coupling within an object. |
1–246 |