CPD Results
The following document contains the results of PMD's CPD 6.55.0.
Duplications
File | Line |
---|---|
org/eclipse/aether/util/graph/manager/DefaultDependencyManager.java | 57 |
org/eclipse/aether/util/graph/manager/TransitiveDependencyManager.java | 54 |
private DefaultDependencyManager( int depth, int deriveUntil, int applyFrom, Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions, SystemDependencyScope systemDependencyScope) { super( depth, deriveUntil, applyFrom, managedVersions, managedScopes, managedOptionals, managedLocalPaths, managedExclusions, systemDependencyScope); } @Override protected DependencyManager newInstance( Map<Object, String> managedVersions, Map<Object, String> managedScopes, Map<Object, Boolean> managedOptionals, Map<Object, String> managedLocalPaths, Map<Object, Collection<Exclusion>> managedExclusions) { return new DefaultDependencyManager( |
File | Line |
---|---|
org/eclipse/aether/util/artifact/ArtifactIdUtils.java | 152 |
org/eclipse/aether/util/artifact/ArtifactIdUtils.java | 180 |
public static boolean equalsId(Artifact artifact1, Artifact artifact2) { if (artifact1 == null || artifact2 == null) { return false; } if (!Objects.equals(artifact1.getArtifactId(), artifact2.getArtifactId())) { return false; } if (!Objects.equals(artifact1.getGroupId(), artifact2.getGroupId())) { return false; } if (!Objects.equals(artifact1.getExtension(), artifact2.getExtension())) { return false; } if (!Objects.equals(artifact1.getClassifier(), artifact2.getClassifier())) { return false; } return Objects.equals(artifact1.getVersion(), artifact2.getVersion()); |
File | Line |
---|---|
org/eclipse/aether/util/graph/manager/AbstractDependencyManager.java | 279 |
org/eclipse/aether/util/graph/transformer/ConflictMarker.java | 229 |
} @Override public boolean equals(Object obj) { if (obj == this) { return true; } else if (!(obj instanceof Key)) { return false; } Key that = (Key) obj; return artifact.getArtifactId().equals(that.artifact.getArtifactId()) && artifact.getGroupId().equals(that.artifact.getGroupId()) && artifact.getExtension().equals(that.artifact.getExtension()) && artifact.getClassifier().equals(that.artifact.getClassifier()); } @Override public int hashCode() { |