while (e.hasMoreElements()) {
Object arg = e.nextElement();
if (inheritedProperties.containsKey(arg)) {
continue;
}
Object value = userProperties.get(arg);
other.setUserProperty(arg.toString(), value.toString());
}
for (Iterator r = nextRC(rcIter).iterator(); r.hasNext();) {
Object next = r.next();
if (hs.add(next)) {
al.add(next);
} else {
al.remove(next);
}
}
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/types/resources/Difference.java
|
Method name: void copyUserProperties(Project)
|
|
Method name: Collection getCollection()
|
Number of AST nodes: 6
|
|
Number of AST nodes: 5
|
|
1 | while (e.hasMoreElements()) {↵ | | 1 | for (Iterator r = nextRC(rcIter).iterator(); r.hasNext();) {↵
|
2 | Object arg = e.nextElement();↵ | | 2 | Object next = r.next();↵
|
3 | if (inheritedProperties.containsKey(arg)) {↵ | | 3 | if (hs.add(next)) {↵
|
4 | continue;↵ | | 4 | al.add(next);↵
|
5 | }↵ | | 5 | } else {↵
|
6 | Object value = userProperties.get(arg);↵ | | 6 | ↵
|
7 | other.setUserProperty(arg.toString(), value.toString());↵ | | |
|
| | | 7 | al.remove(next);↵
|
| | | 8 | }↵
|
8 | } | | 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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |