PMD Results

The following document contains the results of PMD.

Summary

Files Errors
12 38

Files

Files Violations
nl/hippo/client/webapp/AdapterServlet.java 4
nl/hippo/client/webapp/ContextWrapper.java 2
nl/hippo/client/webapp/Pipeline.java 7
nl/hippo/client/webapp/RepositoryAdapter.java 1
nl/hippo/client/webapp/Request.java 3
nl/hippo/client/webapp/ServiceWrapper.java 4
nl/hippo/client/webapp/matchers/AdminMatcher.java 1
nl/hippo/client/webapp/matchers/DeleteQueryMatcher.java 1
nl/hippo/client/webapp/matchers/Matcher.java 1
nl/hippo/client/webapp/matchers/MockHttpServletContext.java 5
nl/hippo/client/webapp/matchers/MockHttpServletRequest.java 5
nl/hippo/client/webapp/matchers/PipelineTest.java 4

nl/hippo/client/webapp/AdapterServlet.java

Violation Line
Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty() - details... 86
Avoid if (x != y) ..; else ..; - details... 92
The String literal "Fileupload failed: " appears 4 times in this file; the first occurrence is on line 108 - details... 108
Avoid if (x != y) ..; else ..; - details... 120

nl/hippo/client/webapp/ContextWrapper.java

Violation Line
Private field 'context' could be made final; it is only initialized in the declaration or constructor. - details... 24
No need to check for null before an instanceof - details... 33

nl/hippo/client/webapp/Pipeline.java

Violation Line
Private field 'matchers' could be made final; it is only initialized in the declaration or constructor. - details... 32
Overridable method 'addMatcher' called during object construction - details... 36
Overridable method 'addMatcher' called during object construction - details... 37
Overridable method 'addMatcher' called during object construction - details... 38
Overridable method 'addMatcher' called during object construction - details... 39
Overridable method 'addMatcher' called during object construction - details... 40
Overridable method 'addMatcher' called during object construction - details... 41

nl/hippo/client/webapp/RepositoryAdapter.java

Violation Line
String.indexOf(char) is faster than String.indexOf(String). - details... 64

nl/hippo/client/webapp/Request.java

Violation Line
Avoid empty catch blocks - details... 37
Avoid appending characters as strings in StringBuffer.append. - details... 81
Avoid appending characters as strings in StringBuffer.append. - details... 87

nl/hippo/client/webapp/ServiceWrapper.java

Violation Line
Private field 'webdavService' could be made final; it is only initialized in the declaration or constructor. - details... 34
Private field 'cacheHandler' could be made final; it is only initialized in the declaration or constructor. - details... 35
These nested if statements could be combined - details... 50
No need to call String.valueOf to append to a string. - details... 151

nl/hippo/client/webapp/matchers/AdminMatcher.java

Violation Line
String.indexOf(char) is faster than String.indexOf(String). - details... 58

nl/hippo/client/webapp/matchers/DeleteQueryMatcher.java

Violation Line
Avoid if (x != y) ..; else ..; - details... 41

nl/hippo/client/webapp/matchers/Matcher.java

Violation Line
Avoid if (x != y) ..; else ..; - details... 58

nl/hippo/client/webapp/matchers/MockHttpServletContext.java

Violation Line
Document empty method - details... 107
Document empty method - details... 110
Document empty method - details... 113
Document empty method - details... 116
Document empty method - details... 119

nl/hippo/client/webapp/matchers/MockHttpServletRequest.java

Violation Line
This class has a bunch of public methods and attributes - details... 16
Private field 'queryStr' could be made final; it is only initialized in the declaration or constructor. - details... 34
Document empty method - details... 244
Document empty method - details... 247
Document empty method - details... 250

nl/hippo/client/webapp/matchers/PipelineTest.java

Violation Line
JUnit tests should include assert() or fail() - details... 32
JUnit tests should include assert() or fail() - details... 51
JUnit tests should include assert() or fail() - details... 63
JUnit tests should include assert() or fail() - details... 76