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/WebsphereDeploymentTool.java
Method name: void configure(XSLTProcess) Method name: DescriptorHandler getWebsphereDescriptorHandler(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.nextElemen
2
Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {
5
t();
3
            EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();
6
   
7
             setAttribute(attr.getName(), attr.getValue());
4
            handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());
8
            }
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.1
Clones locationClones are in different classes
Number of node comparisons1