CPD Results
The following document contains the results of PMD's CPD 7.0.0.
Duplications
File |
Line |
org/apache/maven/model/InputLocation.java |
254 |
org/apache/maven/model/InputLocation.java |
289 |
public static InputLocation merge(InputLocation target, InputLocation source, boolean sourceDominant) {
if (source == null) {
return target;
} else if (target == null) {
return source;
}
InputLocation result = new InputLocation(target.getLineNumber(), target.getColumnNumber(), target.getSource());
java.util.Map<Object, InputLocation> locations;
java.util.Map<Object, InputLocation> sourceLocations = source.getLocations();
java.util.Map<Object, InputLocation> targetLocations = target.getLocations();
if (sourceLocations == null) {
locations = targetLocations;
} else if (targetLocations == null) {
locations = sourceLocations;
} else {
locations = new java.util.LinkedHashMap(); |
File |
Line |
org/apache/maven/model/merge/ModelMerger.java |
462 |
org/apache/maven/model/merge/ModelMerger.java |
1404 |
ModelBase target, ModelBase 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 mergeDistributionManagement( |