while (it.hasNext()) {
IContactModelPartial partial = it.next();
IContactItem item = createContactItem(partial);
groupItem.addContact(item);
}
while (it.hasNext()) {
IContainer m = (IContainer) it.next();
JFrame frame = m.getFrame();
if (frame.isActive())
return m;
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/facade/ContactFacade.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/FrameManager.java
|
Method name: List getAllGroups(String)
|
|
Method name: IContainer getActiveFrameMediator()
|
Number of AST nodes: 4
|
|
Number of AST nodes: 5
|
|
1 | while (it.hasNext()) {↵ | | 1 | while (it.hasNext()) {↵
|
2 | IContactModelPartial partial = it.next();↵ | | 2 | IConta↵
|
3 | IContactItem item = createContactItem(partial);↵ | | |
|
4 | groupItem.addContact(item);↵ | | |
|
5 | ↵ | | 3 | iner m = (IContainer) it.next();↵
|
| | | 4 | JFrame frame = m.getFrame();↵
|
| | | 5 | if (frame.isActive())↵
|
| | | 6 | return m;↵
|
6 | } | | 7 | }
|
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.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 1 |