for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {
EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();
h.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/GenericDeploymentTool.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/CommandlineJava.java
|
Method name: DescriptorHandler getDescriptorHandler(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 | h.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());↵ | | 3 | ↵
|
| | | 4 | v.validate();↵
|
| | | 5 | p.put(v.getKey(), v.getValue());↵
|
4 | } | | 6 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |