Fork me on GitHub

PMD Results

The following document contains the results of PMD 5.3.2.

Files

jnlp/sample/jardiff/JarDiff.java

Violation Line
Avoid unused local variables such as 'visited'. 110
Avoid empty catch blocks 293296
Avoid empty catch blocks 301304
Avoid empty catch blocks 419422
Avoid empty catch blocks 523526
Avoid empty catch blocks 531534
Useless parentheses. 545
Useless parentheses. 549
Useless parentheses. 726
Avoid empty catch blocks 746748
Avoid empty catch blocks 766768

jnlp/sample/jardiff/JarDiffConstants.java

Violation Line
Avoid modifiers which are implied by the context 46
Avoid modifiers which are implied by the context 47
Avoid modifiers which are implied by the context 48
Avoid modifiers which are implied by the context 49

jnlp/sample/jardiff/JarDiffPatcher.java

Violation Line
Avoid unused private fields such as 'oldBytes'. 75
Avoid unused private fields such as '_resources'. 77
Useless parentheses. 108

jnlp/sample/jardiff/Patcher.java

Violation Line
Avoid modifiers which are implied by the context 5354
Avoid modifiers which are implied by the context 5962
Avoid modifiers which are implied by the context 61

jnlp/sample/servlet/DownloadRequest.java

Violation Line
Useless parentheses. 148

jnlp/sample/servlet/DownloadResponse.java

Violation Line
Avoid empty catch blocks 237238
Avoid empty catch blocks 372373

jnlp/sample/servlet/JnlpDownloadServlet.java

Violation Line
Avoid unused local variables such as 'path'. 288

jnlp/sample/servlet/JnlpFileHandler.java

Violation Line
Avoid unused private fields such as 'HEADER_LASTMOD'. 72
Unnecessary use of fully qualified name 'java.util.Date' due to existing import 'java.util.Date' 304
Useless parentheses. 357
Useless parentheses. 357
Useless parentheses. 497
Useless parentheses. 497

jnlp/sample/servlet/JnlpResource.java

Violation Line
Avoid unused private fields such as '_encoding'. 117
Avoid empty catch blocks 237240

jnlp/sample/servlet/Logger.java

Violation Line
Avoid empty catch blocks 280283

jnlp/sample/servlet/ResourceCatalog.java

Violation Line
Useless parentheses. 144
Avoid unused local variables such as 'name'. 340

jnlp/sample/servlet/XMLAttribute.java

Violation Line
Ensure you override both equals() and hashCode() 84
Useless parentheses. 98

jnlp/sample/servlet/XMLNode.java

Violation Line
Ensure you override both equals() and hashCode() 134
Useless parentheses. 165
Useless parentheses. 185
Useless parentheses. 190

jnlp/sample/servlet/XMLParsing.java

Violation Line
An empty statement (semicolon) not part of a loop 80
Useless parentheses. 119

jnlp/sample/util/VersionID.java

Violation Line
These nested if statements could be combined 143146
Useless parentheses. 148
Useless parentheses. 163
These nested if statements could be combined 163166
Useless parentheses. 163
Avoid empty catch blocks 209210
These nested if statements could be combined 233236
Avoid empty if statements 248250
These nested if statements could be combined 278281
Avoid empty if statements 291293
Useless parentheses. 329

jnlp/sample/util/VersionString.java

Violation Line
Useless parentheses. 126