PMD Results

The following document contains the results of PMD 5.1.2.

Files

info/magnolia/cms/cache/CacheConstants.java

Violation Line
Useless parentheses. 5862

info/magnolia/module/cache/CacheModule.java

Violation Line
Avoid unused constructor parameters such as 'moduleManager'. 91

info/magnolia/module/cache/ContentCachingConfiguration.java

Violation Line
Avoid unused private fields such as 'cacheModule'. 64
Avoid unused private fields such as 'repositoryManager'. 65

info/magnolia/module/cache/cachekey/DefaultCacheKey.java

Violation Line
Useless parentheses. 95
Useless parentheses. 96
Useless parentheses. 97
Useless parentheses. 98
Useless parentheses. 99
Useless parentheses. 100
Useless parentheses. 101
Useless parentheses. 102

info/magnolia/module/cache/cachepolicy/Default.java

Violation Line
Useless parentheses. 159
Useless parentheses. 159

info/magnolia/module/cache/cachepolicy/voters/BrowserTtlVoter.java

Violation Line
Avoid unused private fields such as 'log'. 48

info/magnolia/module/cache/executor/AbstractExecutor.java

Violation Line
Useless parentheses. 78
Useless parentheses. 79

info/magnolia/module/cache/executor/SetExpirationHeaders.java

Violation Line
Useless parentheses. 73

info/magnolia/module/cache/executor/UseCache.java

Violation Line
Avoid empty if statements 9294

info/magnolia/module/cache/filter/CacheFilter.java

Violation Line
Avoid unused constructor parameters such as 'aggregationStateProvider'. 105
Useless parentheses. 224

info/magnolia/module/cache/filter/CacheResponseWrapper.java

Violation Line
These nested if statements could be combined 188190
Avoid unused private methods such as 'parseStringDate(String)'. 224

info/magnolia/module/cache/filter/ContentCachedEntry.java

Violation Line
These nested if statements could be combined 202204
These nested if statements could be combined 225228

info/magnolia/module/cache/filter/ResponseExpirationCalculator.java

Violation Line
Useless parentheses. 209

info/magnolia/module/cache/listeners/AbstractCacheListener.java

Violation Line
Avoid unused private fields such as 'log'. 43

info/magnolia/module/cache/listeners/AbstractListeningCacheWrapper.java

Violation Line
Avoid unused private fields such as 'log'. 50

info/magnolia/module/cache/mbean/CacheMonitor.java

Violation Line
Avoid unused constructor parameters such as 'cacheModuleProvider'. 86

info/magnolia/module/cache/mbean/CacheMonitorMBean.java

Violation Line
Avoid modifiers which are implied by the context 45
Avoid modifiers which are implied by the context 51
Avoid modifiers which are implied by the context 57
Avoid modifiers which are implied by the context 63
Avoid modifiers which are implied by the context 69
Avoid modifiers which are implied by the context 75
Avoid modifiers which are implied by the context 81
Avoid modifiers which are implied by the context 88
Avoid modifiers which are implied by the context 94
Avoid modifiers which are implied by the context 100
Avoid modifiers which are implied by the context 105
Avoid modifiers which are implied by the context 110

info/magnolia/module/cache/setup/RemoveCacheTempFilesTask.java

Violation Line
An empty statement (semicolon) not part of a loop 74

info/magnolia/module/cache/util/GZipUtil.java

Violation Line
Useless parentheses. 103