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 |
293–296 |
| Avoid empty catch blocks |
301–304 |
| Avoid empty catch blocks |
419–422 |
| Avoid empty catch blocks |
523–526 |
| Avoid empty catch blocks |
531–534 |
| Useless parentheses. |
545 |
| Useless parentheses. |
549 |
| Useless parentheses. |
726 |
| Avoid empty catch blocks |
746–748 |
| Avoid empty catch blocks |
766–768 |
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 |
53–54 |
| Avoid modifiers which are implied by the context |
59–62 |
| 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 |
237–238 |
| Avoid empty catch blocks |
372–373 |
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 |
237–240 |
jnlp/sample/servlet/Logger.java
| Violation |
Line |
| Avoid empty catch blocks |
280–283 |
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 |
143–146 |
| Useless parentheses. |
148 |
| Useless parentheses. |
163 |
| These nested if statements could be combined |
163–166 |
| Useless parentheses. |
163 |
| Avoid empty catch blocks |
209–210 |
| These nested if statements could be combined |
233–236 |
| Avoid empty if statements |
248–250 |
| These nested if statements could be combined |
278–281 |
| Avoid empty if statements |
291–293 |
| Useless parentheses. |
329 |
jnlp/sample/util/VersionString.java
| Violation |
Line |
| Useless parentheses. |
126 |