CPD Results

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

Duplications

File Line
org\eclipse\aether\internal\impl\Maven2RepositoryLayoutFactory.java 142
org\eclipse\aether\internal\impl\SimpleLocalRepositoryManager.java 169
        public URI getLocation( Metadata metadata, boolean upload )
        {
            StringBuilder path = new StringBuilder( 128 );

            if ( metadata.getGroupId().length() > 0 )
            {
                path.append( metadata.getGroupId().replace( '.', '/' ) ).append( '/' );

                if ( metadata.getArtifactId().length() > 0 )
                {
                    path.append( metadata.getArtifactId() ).append( '/' );

                    if ( metadata.getVersion().length() > 0 )
                    {
                        path.append( metadata.getVersion() ).append( '/' );
                    }
                }
            }

            path.append( metadata.getType() );