if (o instanceof DataType) {
stk.push(o);
invokeCircularReferenceCheck((DataType) o, stk, p);
stk.pop();
}
if (rc instanceof DataType) {
stk.push(rc);
invokeCircularReferenceCheck((DataType) rc, stk, p);
stk.pop();
}
Clone fragments detected by clone detection tool
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
|
|
File path: /apache-ant-1.7.0/src/org/apache/tools/ant/types/resources/BaseResourceCollectionWrapper.java
|
Method name: void dieOnCircularReference(Stack, Project)
|
|
Method name: void dieOnCircularReference(Stack, Project)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | if (o instanceof DataType) {↵ | | 1 | if (rc instanceof DataType) {↵
|
2 | stk.push(o);↵ | | 2 | stk.push(rc);↵
|
3 | invokeCircularReferenceCheck((DataType) o, stk, p);↵ | | 3 | invokeCircularReferenceCheck((DataType) rc, stk, p);↵
|
4 | stk.pop();↵ | | 4 | stk.pop();↵
|
5 | } | | 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 having the same super class |
Number of node comparisons | 1 |