PMD Results
The following document contains the results of PMD 6.21.0.
Violations By Priority
Priority 3
info/magnolia/module/cache/ContentCachingConfiguration.java
info/magnolia/module/cache/cachekey/DefaultCacheKeyGenerator.java
Rule |
Violation |
Line |
SimplifiedTernary |
Ternary operators that can be simplified with || or && |
83 |
info/magnolia/module/cache/cachepolicy/voters/BrowserTtlVoter.java
info/magnolia/module/cache/executor/Store.java
info/magnolia/module/cache/executor/UseCache.java
info/magnolia/module/cache/filter/CacheResponseWrapper.java
info/magnolia/module/cache/filter/ContentCachedEntry.java
info/magnolia/module/cache/listeners/AbstractCacheListener.java
info/magnolia/module/cache/listeners/AbstractListeningCacheWrapper.java
info/magnolia/module/cache/mbean/CacheMonitorMBean.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getAll': the method is declared in an interface type |
45 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getHits': the method is declared in an interface type |
51 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getBypasses': the method is declared in an interface type |
57 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getPuts': the method is declared in an interface type |
63 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getStopCalls': the method is declared in an interface type |
69 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getStartCalls': the method is declared in an interface type |
75 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getFlushes': the method is declared in an interface type |
81 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDomainAccesses': the method is declared in an interface type |
88 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getCachedUUIDsCount': the method is declared in an interface type |
94 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getCachedKeysCount': the method is declared in an interface type |
100 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'flushAll': the method is declared in an interface type |
105 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'flushByUUID': the method is declared in an interface type |
110 |
Priority 4
info/magnolia/cms/cache/CacheConstants.java
info/magnolia/module/cache/cachepolicy/Default.java
info/magnolia/module/cache/executor/AbstractExecutor.java
info/magnolia/module/cache/executor/SetExpirationHeaders.java
info/magnolia/module/cache/filter/CacheFilter.java
info/magnolia/module/cache/filter/ResponseExpirationCalculator.java
info/magnolia/module/cache/util/GZipUtil.java
Files
info/magnolia/cms/cache/CacheConstants.java
info/magnolia/module/cache/ContentCachingConfiguration.java
info/magnolia/module/cache/cachekey/DefaultCacheKeyGenerator.java
Rule |
Violation |
Priority |
Line |
SimplifiedTernary |
Ternary operators that can be simplified with || or && |
3 |
83 |
info/magnolia/module/cache/cachepolicy/Default.java
info/magnolia/module/cache/cachepolicy/voters/BrowserTtlVoter.java
info/magnolia/module/cache/executor/AbstractExecutor.java
info/magnolia/module/cache/executor/SetExpirationHeaders.java
info/magnolia/module/cache/executor/Store.java
info/magnolia/module/cache/executor/UseCache.java
info/magnolia/module/cache/filter/CacheFilter.java
info/magnolia/module/cache/filter/CacheResponseWrapper.java
info/magnolia/module/cache/filter/ContentCachedEntry.java
info/magnolia/module/cache/filter/ResponseExpirationCalculator.java
info/magnolia/module/cache/listeners/AbstractCacheListener.java
info/magnolia/module/cache/listeners/AbstractListeningCacheWrapper.java
info/magnolia/module/cache/mbean/CacheMonitorMBean.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getAll': the method is declared in an interface type |
3 |
45 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getHits': the method is declared in an interface type |
3 |
51 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getBypasses': the method is declared in an interface type |
3 |
57 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getPuts': the method is declared in an interface type |
3 |
63 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getStopCalls': the method is declared in an interface type |
3 |
69 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getStartCalls': the method is declared in an interface type |
3 |
75 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getFlushes': the method is declared in an interface type |
3 |
81 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getDomainAccesses': the method is declared in an interface type |
3 |
88 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getCachedUUIDsCount': the method is declared in an interface type |
3 |
94 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'getCachedKeysCount': the method is declared in an interface type |
3 |
100 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'flushAll': the method is declared in an interface type |
3 |
105 |
UnnecessaryModifier |
Unnecessary modifier 'public' on method 'flushByUUID': the method is declared in an interface type |
3 |
110 |
info/magnolia/module/cache/util/GZipUtil.java