CPD Results

The following document contains the results of PMD's CPD 6.55.0.

Duplications

File Line
org\apache\maven\shared\dependency\graph\internal\DefaultDependencyCollectorBuilder.java 222
org\apache\maven\shared\dependency\graph\internal\DefaultDependencyGraphBuilder.java 150
data);

        List<DependencyNode> nodes = new ArrayList<>(node.getChildren().size());
        for (org.eclipse.aether.graph.DependencyNode child : node.getChildren()) {
            Artifact childArtifact = getDependencyArtifact(child.getDependency());

            if ((filter == null) || filter.include(childArtifact)) {
                nodes.add(buildDependencyNode(current, child, childArtifact, filter));
            }
        }

        current.setChildren(Collections.unmodifiableList(nodes));

        return current;
    }

    private String getVersionSelectedFromRange(VersionConstraint constraint) {
        if ((constraint == null) || (constraint.getVersion() != null)) {
            return null;
        }

        return constraint.getRange().toString();
    }
}