CPD Results
The following document contains the results of PMD's CPD 4.2.5.
Duplications
File | Line |
---|
org/apache/maven/model/merge/ModelMerger.java | 544 |
org/apache/maven/model/merge/ModelMerger.java | 2565 |
protected void mergePlugin_Dependencies( Plugin target, Plugin source, boolean sourceDominant,
Map<Object, Object> context )
{
List<Dependency> src = source.getDependencies();
if ( !src.isEmpty() )
{
List<Dependency> tgt = target.getDependencies();
Map<Object, Dependency> merged = new LinkedHashMap<Object, Dependency>( ( src.size() + tgt.size() ) * 2 );
for ( Dependency element : tgt )
{
Object key = getDependencyKey( element );
merged.put( key, element );
}
for ( Dependency element : src )
{
Object key = getDependencyKey( element );
if ( sourceDominant || !merged.containsKey( key ) )
{
merged.put( key, element );
}
}
target.setDependencies( new ArrayList<Dependency>( merged.values() ) );
}
}
protected void mergePlugin_Executions( Plugin target, Plugin source, boolean sourceDominant, |
File | Line |
---|
org/apache/maven/model/merge/ModelMerger.java | 676 |
org/apache/maven/model/merge/ModelMerger.java | 1862 |
protected void mergeContributor_Properties( Contributor target, Contributor source, boolean sourceDominant,
Map<Object, Object> context )
{
Properties merged = new Properties();
if ( sourceDominant )
{
merged.putAll( target.getProperties() );
merged.putAll( source.getProperties() );
}
else
{
merged.putAll( source.getProperties() );
merged.putAll( target.getProperties() );
}
target.setProperties( merged );
target.setLocation( "properties", InputLocation.merge( target.getLocation( "properties" ),
source.getLocation( "properties" ), sourceDominant ) );
}
protected void mergeIssueManagement( IssueManagement target, IssueManagement source, boolean sourceDominant, |