File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/builder/RoseUtil.java | File path: /emf-2.4.1/src/org/eclipse/emf/importer/rose/builder/RoseUtil.java | |||
Method name: void setIDs(UnitTreeNode)
|
Method name: void validate(UnitTreeNode)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | for (EObject eObject : node.getExtent())↵ | 1 | for (EObject eObject : node.getExtent())↵ | |
2 | {↵ | 2 | {↵ | |
3 | roseEcoreBuilder.setIDs(null, eObject);↵ | 3 | roseEcoreBuilder.validate(eObject);↵ | |
4 | }↵ | 4 | }↵ | |
5 | // Process the children of the UnitTreeNode recursively.↵ | 5 | // Process the children of the UnitTreeNode recursively.↵ | |
6 | //↵ | 6 | //↵ | |
7 | for (UnitTreeNode subNode : node.getNodes())↵ | 7 | for (UnitTreeNode subNode : node.getNodes())↵ | |
8 | {↵ | 8 | {↵ | |
9 | setIDs(subNode);↵ | 9 | validate(subNode);↵ | |
10 | } | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.3 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 13 |
Number of mapped statements | 4 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | for (EObject eObject : node.getExtent()) | 1 | for (EObject eObject : node.getExtent()) | ||||||||||||||||||||||
2 | roseEcoreBuilder.setIDs(null, eObject); |
| 2 | roseEcoreBuilder.validate(eObject); | |||||||||||||||||||||
3 | for (UnitTreeNode subNode : node.getNodes()) | 3 | for (UnitTreeNode subNode : node.getNodes()) | ||||||||||||||||||||||
4 | setIDs(subNode); |
| 4 | validate(subNode); |
Row | Violation |
---|---|
1 | Expression roseEcoreBuilder.setIDs(null,eObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression roseEcoreBuilder.validate(eObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression roseEcoreBuilder.setIDs(null,eObject) is a void method call, and thus it cannot be parameterized |
4 | Expression roseEcoreBuilder.validate(eObject) is a void method call, and thus it cannot be parameterized |
5 | Expression roseEcoreBuilder.setIDs(null,eObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
6 | Expression roseEcoreBuilder.validate(eObject) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
7 | Expression roseEcoreBuilder.setIDs(null,eObject) is a void method call, and thus it cannot be parameterized |
8 | Expression roseEcoreBuilder.validate(eObject) is a void method call, and thus it cannot be parameterized |
9 | Expression setIDs(subNode) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
10 | Expression validate(subNode) cannot be parameterized, because it has dependencies to/from statements that will be extracted |
11 | Expression setIDs(subNode) is a void method call, and thus it cannot be parameterized |
12 | Expression validate(subNode) is a void method call, and thus it cannot be parameterized |