CPD Results
The following document contains the results of PMD's CPD 4.2.5.
Duplications
File | Line |
---|---|
org/apache/maven/model/inheritance/DefaultInheritanceAssembler.java | 162 |
org/apache/maven/model/profile/DefaultProfileInjector.java | 112 |
mergePlugin( existing, element, sourceDominant, context ); if ( !pending.isEmpty() ) { predecessors.put( key, pending ); pending = new ArrayList<Plugin>(); } } else { pending.add( element ); } } List<Plugin> result = new ArrayList<Plugin>( src.size() + tgt.size() ); for ( Map.Entry<Object, Plugin> entry : master.entrySet() ) { List<Plugin> pre = predecessors.get( entry.getKey() ); if ( pre != null ) { result.addAll( pre ); } result.add( entry.getValue() ); } result.addAll( pending ); target.setPlugins( result ); } } @Override protected void mergePlugin_Executions( Plugin target, Plugin source, boolean sourceDominant, |