CPD Results
The following document contains the results of PMD's CPD 5.6.1.
Duplications
File |
Line |
org\apache\maven\resolver\internal\ant\types\Mirror.java |
61 |
org\apache\maven\resolver\internal\ant\types\RemoteRepository.java |
101 |
throw tooManyAttributes();
}
super.setRefid( ref );
}
public String getId()
{
if ( isReference() )
{
return getRef().getId();
}
return id;
}
public void setId( String id )
{
this.id = id;
}
public String getUrl()
{
if ( isReference() )
{
return getRef().getUrl();
}
return url;
}
public void setUrl( String url )
{
checkAttributesAllowed();
this.url = url;
}
public String getType()
{
if ( isReference() )
{
return getRef().getType();
}
return ( type != null ) ? type : "default";
}
public void setType( String type )
{
checkAttributesAllowed();
this.type = type;
}
public String getMirrorOf() |
File |
Line |
org\apache\maven\resolver\internal\ant\tasks\AbstractResolvingTask.java |
71 |
org\apache\maven\resolver\internal\ant\types\Pom.java |
259 |
}
private RemoteRepositories getRemoteRepos()
{
if ( remoteRepositories == null )
{
remoteRepositories = new RemoteRepositories();
remoteRepositories.setProject( getProject() );
}
return remoteRepositories;
}
public void addRemoteRepo( RemoteRepository repository )
{
getRemoteRepos().addRemoterepo( repository );
}
public void addRemoteRepos( RemoteRepositories repositories )
{
getRemoteRepos().addRemoterepos( repositories );
}
public void setRemoteReposRef( Reference ref )
{
RemoteRepositories repos = new RemoteRepositories();
repos.setProject( getProject() );
repos.setRefid( ref );
getRemoteRepos().addRemoterepos( repos );
} |