for (Enumeration attrs = factory.getAttributes(); attrs.hasMoreElements();) { XSLTProcess.Factory.Attribute attr = (XSLTProcess.Factory.Attribute) attrs.nextElement(); setAttribute(attr.getName(), attr.getValue()); }
for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) { EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next(); handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation()); }
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/ejb/BorlandDeploymentTool.java
Method name: void configure(XSLTProcess) Method name: DescriptorHandler getBorlandDescriptorHandler(File)
Number of AST nodes: 3 Number of AST nodes: 3
1
for (Enumeration attrs = factory.getAttributes();
1
for (
2
                    attrs.hasMoreElements();) {
3
                XSLTProcess.Factory.Attribute attr =
4
                        (XSLTProcess.Factory.Attribute) attrs.nextElement();
5
                setAttribute(attr.getName(), attr.getValue
2
Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {
3
            EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();
6
());
4
            handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());
7
            }
5
        }
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.2
Clones locationClones are in different classes
Number of node comparisons1