The following document contains the results of PMD's CPD 6.55.0.
File | Line |
---|---|
org/apache/maven/model/InputLocation.java | 228 |
org/apache/maven/model/InputLocation.java | 263 |
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(); |