CPD Results

The following document contains the results of PMD's CPD 5.6.1.

Duplications

File Line
org/eclipse/aether/util/graph/manager/ClassicDependencyManager.java 299
org/eclipse/aether/util/graph/transformer/ConflictMarker.java 275
        }

        @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()
        {
File Line
org/eclipse/aether/util/artifact/ArtifactIdUtils.java 162
org/eclipse/aether/util/artifact/ArtifactIdUtils.java 200
    public static boolean equalsId( Artifact artifact1, Artifact artifact2 )
    {
        if ( artifact1 == null || artifact2 == null )
        {
            return false;
        }
        if ( !eq( artifact1.getArtifactId(), artifact2.getArtifactId() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getGroupId(), artifact2.getGroupId() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getExtension(), artifact2.getExtension() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getClassifier(), artifact2.getClassifier() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getVersion(), artifact2.getVersion() ) )
File Line
org/eclipse/aether/util/artifact/ArtifactIdUtils.java 162
org/eclipse/aether/util/artifact/ArtifactIdUtils.java 200
org/eclipse/aether/util/artifact/ArtifactIdUtils.java 239
    public static boolean equalsId( Artifact artifact1, Artifact artifact2 )
    {
        if ( artifact1 == null || artifact2 == null )
        {
            return false;
        }
        if ( !eq( artifact1.getArtifactId(), artifact2.getArtifactId() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getGroupId(), artifact2.getGroupId() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getExtension(), artifact2.getExtension() ) )
        {
            return false;
        }
        if ( !eq( artifact1.getClassifier(), artifact2.getClassifier() ) )
        {
            return false;
        }