PMD Results
The following document contains the results of PMD 5.3.2.
Files
org/apache/maven/artifact/deployer/DefaultArtifactDeployer.java
Violation |
Line |
Avoid empty if statements |
112–114 |
org/apache/maven/artifact/installer/DefaultArtifactInstaller.java
Violation |
Line |
Avoid empty if statements |
96–98 |
org/apache/maven/artifact/repository/DefaultArtifactRepository.java
Violation |
Line |
Avoid unused constructor parameters such as 'uniqueVersion'. |
77 |
org/apache/maven/artifact/repository/metadata/DefaultRepositoryMetadataManager.java
Violation |
Line |
These nested if statements could be combined |
141–153 |
Useless parentheses. |
252 |
Useless parentheses. |
252 |
Useless parentheses. |
296 |
These nested if statements could be combined |
441–453 |
org/apache/maven/artifact/resolver/DefaultArtifactResolver.java
Violation |
Line |
Avoid using java.lang.ThreadGroup; it is not thread safe |
573 |
org/apache/maven/artifact/resolver/WarningResolutionListener.java
Violation |
Line |
Avoid unused private fields such as 'logger'. |
34 |
org/apache/maven/project/ModelUtils.java
Violation |
Line |
Useless parentheses. |
57 |
Useless parentheses. |
57 |
Useless parentheses. |
65 |
Useless parentheses. |
79 |
Useless parentheses. |
99 |
Useless parentheses. |
104 |
Useless parentheses. |
117 |
Useless parentheses. |
192 |
Useless parentheses. |
192 |
Useless parentheses. |
203 |
Useless parentheses. |
203 |
Useless parentheses. |
220 |
Useless parentheses. |
224 |
Useless parentheses. |
237 |
Useless parentheses. |
251 |
Useless parentheses. |
288 |
org/apache/maven/project/inheritance/DefaultModelInheritanceAssembler.java
Violation |
Line |
Useless parentheses. |
107 |
Useless parentheses. |
113 |
Useless parentheses. |
125 |
Useless parentheses. |
125 |
These nested if statements could be combined |
208–211 |
Useless parentheses. |
368 |
Useless parentheses. |
368 |
Useless parentheses. |
376 |
Useless parentheses. |
386 |
Useless parentheses. |
400 |
Useless parentheses. |
430 |
Useless parentheses. |
460 |
Useless parentheses. |
460 |
Useless parentheses. |
466 |
Useless parentheses. |
466 |
Useless parentheses. |
474 |
Useless parentheses. |
478 |
Useless parentheses. |
500 |
These nested if statements could be combined |
590–607 |
These nested if statements could be combined |
612–616 |
These nested if statements could be combined |
621–626 |
Avoid empty if statements |
710–714 |
org/apache/maven/project/interpolation/RegexBasedModelInterpolator.java
Violation |
Line |
Avoid unused constructor parameters such as 'envars'. |
50 |
org/apache/maven/project/path/DefaultPathTranslator.java
Violation |
Line |
These nested if statements could be combined |
165–168 |
org/apache/maven/repository/DefaultMirrorSelector.java
Violation |
Line |
Do not hard code the IP address |
136 |
org/apache/maven/repository/MetadataResolutionResult.java
Violation |
Line |
Avoid unused private fields such as 'dirtyTree'. |
66 |
Avoid unused private fields such as 'resolvedGraph'. |
70 |
org/apache/maven/repository/legacy/DefaultUpdateCheckManager.java
Violation |
Line |
Useless parentheses. |
107 |
Useless parentheses. |
147 |
org/apache/maven/repository/legacy/DefaultWagonManager.java
Violation |
Line |
Avoid unused method parameters such as 'protocol'. |
798 |
org/apache/maven/repository/legacy/resolver/DefaultLegacyArtifactCollector.java
Violation |
Line |
These nested if statements could be combined |
181–189 |
Useless parentheses. |
215 |
Useless parentheses. |
215 |
Useless parentheses. |
273 |
Useless parentheses. |
273 |
Useless parentheses. |
376 |
Useless parentheses. |
376 |
Useless parentheses. |
632 |
Useless parentheses. |
639 |
Useless parentheses. |
645 |
Useless parentheses. |
646 |
Useless parentheses. |
683 |
org/apache/maven/repository/legacy/resolver/transform/SnapshotTransformation.java
Violation |
Line |
Useless parentheses. |
157 |
Useless parentheses. |
158 |
org/apache/maven/repository/metadata/ArtifactMetadata.java
Violation |
Line |
Avoid unused constructor parameters such as 'af'. |
151 |
org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
Violation |
Line |
Avoid empty if statements |
110–116 |
Avoid unused method parameters such as 'v'. |
207 |
org/apache/maven/repository/metadata/MetadataGraph.java
Violation |
Line |
Avoid unused method parameters such as 'nVertices'. |
244 |
org/apache/maven/repository/metadata/MetadataGraphEdge.java
Violation |
Line |
Ensure you override both equals() and hashCode() |
84 |
Useless parentheses. |
183 |
Useless parentheses. |
184 |