CPD Results

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

Duplications

FileLine
org/mlc/swing/layout/LayoutConstraintsManager.java605
org/mlc/swing/layout/ComponentDef.java241
  }

  private static Map<String, String> getAttributeMap(Node node)
  {

    Map<String, String> attributeMap = new HashMap<String, String>();

    NamedNodeMap attributes = node.getAttributes();
    if (attributes != null)
    {
      for (int index = 0; index < attributes.getLength(); index++)
      {
        Node attribute = attributes.item(index);
        attributeMap.put(attribute.getNodeName(), attribute.getNodeValue());
      }
    }

    return attributeMap;
  }

  private static Node[] getNodesNamed(Node parent, String nodeName)
  {
    NodeList children = parent.getChildNodes();
    List<Node> childList = new ArrayList<Node>();
    for (int i = 0; i < children.getLength(); i++)
    {