for (Enumeration e = vendorTools.elements();
e.hasMoreElements();) {
HotDeploymentTool tool = (HotDeploymentTool) e.nextElement();
tool.validateAttributes();
tool.deploy();
}
for (int index = 0; index < files.length; ++index) {
// process the deployment descriptor in each tool
for (Iterator i = deploymentTools.iterator(); i.hasNext();) {
EJBDeploymentTool tool = (EJBDeploymentTool) i.next();
tool.processDescriptor(files[index], saxParser);
}
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/EjbJar.java
|
Method name: void execute()
|
|
Method name: void execute()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | for (Enumeration e = vendorTools.elements();↵ | | 1 | for (↵
|
2 | e.hasMoreElements↵ | | 2 | int index = 0; index < files.length; ++index) {↵
|
| | | 3 | // process the deployment descriptor in each tool↵
|
3 | ();) {↵ | | 4 | for (Iterator i = deploymentTools.iterator(); i.hasNext();) {↵
|
4 | HotDeploymentTool tool = (HotDeploymentTool) e.nextElement();↵ | | 5 | EJBDeploymentTool tool = (EJBDeploymentTool) i.next↵
|
| | | 6 | ();↵
|
5 | tool.validateAttributes();↵ | | 7 | tool.↵
|
6 | tool.deploy();↵ | | |
|
| | | 8 | processDescriptor(files[index], saxParser);↵
|
| | | 9 | }↵
|
7 | } | | 10 | }
|
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 having the same super class |
Number of node comparisons | 1 |