source/tools/jboss-v7-tool/src/main/java/com/uc4/ara/feature/jbossv7/CompareJBossV7Snapshot.java
private void addStateToSnapXml(Element parent) {

        for (Node node = parent.getFirstChild(); node != null; node = node.getNextSibling())
        {
            if (node.getNodeType() == Node.ELEMENT_NODE)
            {
                Element e =  (Element) node;

                e.setAttribute("state", "equal");
                if(e.getNodeName() == "file")
                    e.removeAttribute("hash");

                addStateToSnapXml(e);
            }
        }
    }
/** Recursively add 'equal' state to OverviewSnap.xml
     */
Recursively add 'equal' state to OverviewSnap.xml
Recursively add ' equal ' state to OverviewSnap . xml
private void addStateToSnapXml(Element parent) {
        for (Node node = parent.getFirstChild(); node != null; node = node.getNextSibling())
        {
            if (node.getNodeType() == Node.ELEMENT_NODE)
            {
                Element e =  (Element) node;
                e.setAttribute("state", "equal");
                if(e.getNodeName() == "file")
                    e.removeAttribute("hash");
                addStateToSnapXml(e);
            }
        }
    }
private void addStateToSnapXml ( Element parent ) { for ( Node node = parent . getFirstChild ( ) ; node != null ; node = node . getNextSibling ( ) ) { if ( node . getNodeType ( ) == Node . ELEMENT_NODE ) { Element e = ( Element ) node ; e . setAttribute ( "state" , "equal" ) ; if ( e . getNodeName ( ) == "file" ) e . removeAttribute ( "hash" ) ; addStateToSnapXml ( e ) ; } } }
Recursively add 'equal' state to OverviewSnap.xml
Recursively add ' equal ' state to OverviewSnap . xml