Object arg = e.nextElement();
if (inheritedProperties.containsKey(arg)) {
continue;
}
Object value = userProperties.get(arg);
other.setUserProperty(arg.toString(), value.toString());
for (Iterator i = unknownElements.iterator();
i.hasNext();) {
UnknownElement child = copy((UnknownElement) i.next());
rc.addChild(child.getWrapper());
ret.addChild(child);
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/PropertyHelper.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/taskdefs/MacroInstance.java
|
Method name: void copyUserProperties(Project)
|
|
Method name: UnknownElement copy(UnknownElement)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 4
|
|
1 | Object arg = e.nextElement();↵ | | |
|
2 | if (inheritedProperties.containsKey(arg)↵ | | 1 | for (Iterator i = unknownElements.iterator();↵
|
3 | ) {↵ | | 2 | i.hasNext();) {↵
|
4 | continue;↵ | | 3 | UnknownElement child = copy((UnknownElement) i.next());↵
|
5 | }↵ | | 4 | ↵
|
6 | Object value = userProperties.get(arg);↵ | | 5 | ↵
|
7 | other.setUserProperty(arg.toString(), value.toString()); | | 6 | rc.addChild(child.getWrapper());↵
|
| | | 7 | ret.addChild(child);↵
|
| | | 8 | }
|
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 |