VirtualItem item = map.get(id);
IContactStorage parentStore = item.getParentStore();
String parentId = item.getParentId();
VirtualItem item = map.get(id);
IContactStorage parentStore = item.getParentStore();
String parentId = item.getParentId();
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/folder/virtual/VirtualFolder.java
|
|
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/folder/virtual/VirtualFolder.java
|
Method name: IContactModel get(String)
|
|
Method name: void remove(String)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 3
|
|
1 | VirtualItem item = map.get(id);↵ | | 1 | VirtualItem item = map.get(id);↵
|
2 | IContactStorage parentStore = item.getParentStore();↵ | | 2 | IContactStorage parentStore = item.getParentStore();↵
|
3 | String parentId = item.getParentId(); | | 3 | String parentId = item.getParentId();
|
See real code fragment |
|
See real code fragment |
Summary
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 3 |
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.0 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
3 | VirtualItem item = map.get(id); | | 3 | VirtualItem item = map.get(id); |
4 | IContactStorage parentStore = item.getParentStore(); | | 4 | IContactStorage parentStore = item.getParentStore(); |
5 | String parentId = item.getParentId(); | | 5 | String parentId = item.getParentId(); |
Precondition Violations (1)
Row |
Violation |
1 | Clone fragment #1 returns variables parentStore, parentId , while Clone fragment #2 returns variables parentStore, parentId |