while (it.hasNext()) { IContactModelPartial partial = it.next(); IContactItem item = createContactItem(partial); groupItem.addContact(item); }
IFolder folder = dialog.getSelectedFolder(); String uid = folder.getId(); addContacts(uid, contactItems);
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/contact/src/main/java/org/columba/addressbook/facade/ContactFacade.java
Method name: List getAllGroups(String) Method name: void addContacts(IContactItem[])
Number of AST nodes: 4 Number of AST nodes: 3
1
while (it.hasNext()) {
2
				IContactModelPartial partial = it.next();
3
				IContactItem item = createContactItem(partial
1
IFolder folder = dialog.getSelectedFolder();
4
);
2
			String uid = folder.getId();
5
	
6
			groupItem.addContact(item);
3
			addContacts(uid, contactItems);
7
			}
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are declared in the same class
Number of node comparisons9