for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) { EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next(); handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation()); }
for (Enumeration e = variables.elements(); e.hasMoreElements();) { Environment.Variable v = (Environment.Variable) e.nextElement(); v.validate(); p.put(v.getKey(), v.getValue()); }
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/CommandlineJava.java
Method name: DescriptorHandler getWebsphereDescriptorHandler(File) Method name: void setSystem()
Number of AST nodes: 3 Number of AST nodes: 4
1
for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {
1
for (Enumeration e = variables.elements(); e.hasMoreElements();) {
2
            EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();
2
                    Environment.Variable v = (Environment.Variable) e.nextElement();
3
            handler.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());
3
            
4
        v.validate();
5
                    p.put(v.getKey(), v.getValue());
4
        }
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.1
Clones locationClones are in different classes
Number of node comparisons1