for (Enumeration attrs = factory.getAttributes(); attrs.hasMoreElements();) { XSLTProcess.Factory.Attribute attr = (XSLTProcess.Factory.Attribute) attrs.nextElement(); setAttribute(attr.getName(), attr.getValue()); }
for (Enumeration props = xsltTask.getOutputProperties(); props.hasMoreElements();) { XSLTProcess.OutputProperty prop = (XSLTProcess.OutputProperty) props.nextElement(); setOutputProperty(prop.getName(), prop.getValue()); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/TraXLiaison.java
Method name: void configure(XSLTProcess) Method name: void configure(XSLTProcess)
Number of AST nodes: 3 Number of AST nodes: 3
1
for (Enumeration attrs = factory.getAttributes();
1
for (Enumeration props = xsltTask.getOutputProperties();
2
                    attrs.hasMoreElements();) {
2
                props.hasMoreElements();) {
3
                XSLTProcess.Factory.Attribute attr =
3
            XSLTProcess.OutputProperty prop
4
                        (XSLTProcess.Factory.Attribute) attrs.nextElement();
4
                = (XSLTProcess.OutputProperty) props.nextElement();
5
                setAttribute(attr.getName(), attr.getValue());
5
            setOutputProperty(prop.getName(), prop.getValue());
6
            }
6
        }
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.5
Clones locationClones are in the same method
Number of node comparisons1