Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.964 | block |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 118 | E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/facade/ContactFacade.java |
2 | 14 | 139 | E:/TSE/Projects-CloneDR/columba-1.4-src/contact/src/main/java/org/columba/addressbook/facade/ContactFacade.java |
| |||||
{ if (contactItems == null) throw new IllegalArgumentException("Zero IContactItem\'s were specified to add to addressbook folder"); AddressbookTreeModel model = AddressbookTreeModel.getInstance(); SelectAddressbookFolderDialog dialog = new SelectAddressbookFolderDialog(model); if (dialog.success()) { IFolder folder = dialog.getSelectedFolder(); String uid = folder.getId(); addContacts(uid, contactItems); } else return; } |
| |||||
{ if (contactItem == null) throw new IllegalArgumentException("IContactItem is null"); AddressbookTreeModel model = AddressbookTreeModel.getInstance(); SelectAddressbookFolderDialog dialog = new SelectAddressbookFolderDialog(model); if (dialog.success()) { IFolder folder = dialog.getSelectedFolder(); String uid = folder.getId(); addContact(uid, contactItem); } else return; } |
| |||
{ if ( [[#variable13292ac0]]== null) throw new IllegalArgumentException( [[#variable13292a40]]); AddressbookTreeModel model = AddressbookTreeModel.getInstance(); SelectAddressbookFolderDialog dialog = new SelectAddressbookFolderDialog(model); if (dialog.success()) { IFolder folder = dialog.getSelectedFolder(); String uid = folder.getId(); [[#variable132929a0]](uid, [[#variable13292ac0]]); } else return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#13292ac0]] | contactItems |
1 | 2 | [[#13292ac0]] | contactItem |
2 | 1 | [[#13292a40]] | "Zero IContactItem\'s were specified to add to addressbook folder" |
2 | 2 | [[#13292a40]] | "IContactItem is null" |
3 | 1 | [[#132929a0]] | addContacts |
3 | 2 | [[#132929a0]] | addContact |