CPD Results

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

Duplications

File Line
org/apache/maven/internal/xml/XmlPlexusConfiguration.java 178
org/apache/maven/internal/xml/XmlPlexusConfiguration.java 241
org/apache/maven/internal/xml/XmlPlexusConfiguration.java 260
XmlNode newChild = XmlNode.newInstance(child);
                List<XmlNode> newChildren = new ArrayList<>(xmlNode.children());
                newChildren.add(newChild);

                this.xmlNode = XmlNode.newBuilder()
                        .name(xmlNode.name())
                        .value(xmlNode.value())
                        .attributes(xmlNode.attributes())
                        .children(newChildren)
                        .namespaceUri(xmlNode.namespaceUri())
                        .prefix(xmlNode.prefix())
                        .inputLocation(xmlNode.inputLocation())
                        .build();
                clearCache();

                return new XmlPlexusConfiguration(newChild);
            } else {