PMD 结果

以下文档包含PMD 5.6.1 的结果。

文件

org/apache/maven/shared/dependency/graph/internal/Maven31DependencyCollectorBuilder.java

违反 线
由于现有导入“org.eclipse.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.eclipse.aether.artifact.ArtifactTypeRegistry” 139
由于现有导入“org.eclipse.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.eclipse.aether.artifact.ArtifactTypeRegistry” 207
由于现有导入“org.eclipse.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.eclipse.aether.artifact.ArtifactTypeRegistry” 218
由于现有导入“org.eclipse.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.eclipse.aether.artifact.ArtifactTypeRegistry” 225
无用的括号。 303
无用的括号。 316
无用的括号。 316

org/apache/maven/shared/dependency/graph/internal/Maven31DependencyGraphBuilder.java

违反 线
无用的括号。 194
无用的括号。 207
无用的括号。 207

org/apache/maven/shared/dependency/graph/internal/Maven3DependencyCollectorBuilder.java

违反 线
由于现有导入“org.sonatype.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.sonatype.aether.artifact.ArtifactTypeRegistry” 139
由于现有导入“org.sonatype.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.sonatype.aether.artifact.ArtifactTypeRegistry” 213
由于现有导入“org.sonatype.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.sonatype.aether.artifact.ArtifactTypeRegistry” 224
由于现有导入“org.sonatype.aether.artifact.ArtifactTypeRegistry”,不必要地使用完全限定名称“org.sonatype.aether.artifact.ArtifactTypeRegistry” 231
无用的括号。 309
无用的括号。 322
无用的括号。 322
无用的括号。 322

org/apache/maven/shared/dependency/graph/internal/Maven3DependencyGraphBuilder.java

违反 线
无用的括号。 133
无用的括号。 146
无用的括号。 146

org/apache/maven/shared/dependency/graph/internal/VerboseDependencyNode.java

违反 线
无用的括号。 48

org/apache/maven/shared/dependency/graph/internal/maven30/ConflictIdSorter.java

违反 线
无用的括号。 162

org/apache/maven/shared/dependency/graph/internal/maven30/ConflictResolver.java

违反 线
无用的括号。 692
无用的括号。 699
无用的括号。 717
可以用 || 简化的三元运算符 要么 && 730
无用的括号。 732733
无用的括号。 734
无用的括号。 741
可以用 || 简化的三元运算符 要么 && 741

org/apache/maven/shared/dependency/graph/internal/maven30/NearestVersionSelector.java

违反 线
这些嵌套的 if 语句可以组合 6571
这些嵌套的 if 语句可以组合 6770

org/apache/maven/shared/dependency/graph/traversal/SerializingDependencyNodeVisitor.java

违反 线
无用的括号。 210