PMD Results

The following document contains the results of PMD.

Summary

Files Errors
5 13

Files

Files Violations
nl/hippo/client/caching/EventCache.java 4
nl/hippo/client/caching/EventRegistry.java 2
nl/hippo/client/caching/JCSDefaultCache.java 3
nl/hippo/client/caching/NOPDefaultCache.java 3
nl/hippo/client/caching/service/CachingServiceImpl.java 1

nl/hippo/client/caching/EventCache.java

Violation Line
Private field 'config' could be made final; it is only initialized in the declaration or constructor. - details... 31
Private field 'eventRegistry' could be made final; it is only initialized in the declaration or constructor. - details... 32
No need to check for null before an instanceof - details... 62
Consider simply returning the value vs storing it in local variable 'cachedObj' - details... 64

nl/hippo/client/caching/EventRegistry.java

Violation Line
Deeply nested if..then statements are hard to read - details... 66
These nested if statements could be combined - details... 123

nl/hippo/client/caching/JCSDefaultCache.java

Violation Line
Overridable method 'clear' called during object construction - details... 70
Consider simply returning the value vs storing it in local variable 'value' - details... 94
The String literal "jcs.region." appears 8 times in this file; the first occurrence is on line 177 - details... 177

nl/hippo/client/caching/NOPDefaultCache.java

Violation Line
Document empty method - details... 29
Document empty method - details... 32
Document empty method - details... 35

nl/hippo/client/caching/service/CachingServiceImpl.java

Violation Line
Private field 'cache' could be made final; it is only initialized in the declaration or constructor. - details... 31