The following document contains the results of PMD's CPD 5.3.2.
| File | Line |
|---|---|
| org/eclipse/aether/internal/impl/Maven2RepositoryLayoutFactory.java | 122 |
| org/eclipse/aether/internal/impl/SimpleLocalRepositoryManager.java | 171 |
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() ); | |