for (Enumeration e = params.elements(); e.hasMoreElements();) {
Param p = (Param) e.nextElement();
if (p.shouldUse()) {
liaison.addParam(p.getName(), p.getExpression());
}
}
if (!(sysprops.isEmpty())) {
for (Enumeration en = sysprops.elements(); en.hasMoreElements();) {
Environment.Variable entry
= (Environment.Variable) en.nextElement();
javaTask.addSysproperty(entry);
}
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/XSLTProcess.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
|
Method name: void configureLiaison(Resource)
|
|
Method name: void buildWeblogicJar(File, File, String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
| | | 1 | if (!(sysprops.isEmpty())) {↵
|
1 | for (Enumeration e = params.elements(); e.hasMoreElements();) {↵ | | 2 | for (Enumeration en = sysprops.elements(); en.hasMoreElements();) {↵
|
2 | Param p = (Param) e.nextElement();↵ | | 3 | Environment.Variable ent↵
|
| | | 4 | ry↵
|
3 | if (p.shouldUse()) {↵ | | 5 | ↵
|
4 | liaison.addParam(p.getName(), p.getExpression()↵ | | 6 | = (Environment.Variable) en.nextElement();↵
|
5 | );↵ | | 7 | javaTask.addSysproperty(entry);↵
|
6 | }↵ | | 8 | }↵
|
7 | } | | 9 | }
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |