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();
h.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/GenericDeploymentTool.java
|
Method name: void configure(XSLTProcess)
|
|
Method name: DescriptorHandler getDescriptorHandler(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 | h.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());↵
|
7 | } | | 5 | }
|
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 |