CPD Results

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

Duplications

FileLine
org/kathrynhuxtable/middleware/shibshim/filter/UserAttributesImpl.java270
org/kathrynhuxtable/middleware/shibshim/filter/UserAttributesImpl.java359
            result.append("<" + ATTRIBUTE_TAG + " " + ATTRIBUTE_NAME_TAG + "=\"" + attrName + "\">");
            for (Node value = attribute.getFirstChild(); value != null; value = value.getNextSibling()) {
                String valueNodeName = value.getNodeName();
                // Skip anything outside a "Value" tag. There shouldn't be
                // anything...
                if (valueNodeName == null || !valueNodeName.equals(ATTRIBUTE_VALUE_TAG)) {
                    continue;
                }
                StringBuffer attrValue = new StringBuffer();
                for (Node valueNode = value.getFirstChild(); valueNode != null; valueNode = valueNode.getNextSibling()) {
                    if (valueNode.getNodeName() == null || !valueNode.getNodeName().equals(ATTR_STMT_TAG)) {
                        attrValue.append(valueNode.getNodeValue());
                    } else {
                        // Parse an embedded <AttributeStatement> as a value
                        // element.
                        // This involves reconstructing a String
                        // representation of the XML.
                        attrValue.append(encodeAttributeStatement(valueNode));
                    }
                }
                if (attrValue.length() > 0) {