addAddress(item.getName(), item); addAddress(item.getLastname(), item); addAddress(item.getFirstname(), item);
addAddress(item.getName(), item); addAddress(item.getFirstName(), item); addAddress(item.getLastName(), item);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/autocomplete/AddressCollector.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/composer/util/AddressCollector.java
Method name: void addAllContacts(String, boolean) Method name: void addAllContacts(List, boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
addAddress(item.getName(), item);
1
addAddress(item.getName(), item);
2
				addAddress(item.getLastname(), item);
2
				addAddress(item.getFirstName(), item);
3
				addAddress(item.getFirstname(), item);
3
				addAddress(item.getLastName(), item);
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons10
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    20
    addAddress(item.getName(), item);
    20
    addAddress(item.getName(), item);
    8
    addAddress(item.getName(), item);
    Differences
    Expression1Expression2Difference
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    8
    addAddress(item.getName(), item);
    21
    addAddress(item.getLastname(), item);
    21
    addAddress(item.getLastname(), item);
    9
    addAddress(item.getFirstName(), item);
    Differences
    Expression1Expression2Difference
    getLastnamegetFirstNameMETHOD_INVOCATION_NAME_MISMATCH
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    9
    addAddress(item.getFirstName(), item);
    22
    addAddress(item.getFirstname(), item);
    22
    addAddress(item.getFirstname(), item);
    10
    addAddress(item.getLastName(), item);
    Differences
    Expression1Expression2Difference
    getFirstnamegetLastNameMETHOD_INVOCATION_NAME_MISMATCH
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    org.columba.addressbook.model.ContactModelPartialorg.columba.addressbook.facade.IContactItemVARIABLE_TYPE_MISMATCH
    Preondition Violations
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    • Make classes org.columba.addressbook.model.ContactModelPartial and org.columba.addressbook.facade.IContactItem extend a common superclass
    10
    addAddress(item.getLastName(), item);
    Precondition Violations (6)
    Row Violation
    1Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    2Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    3Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    4Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    5Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item
    6Type org.columba.addressbook.model.ContactModelPartial of variable item does not match with type org.columba.addressbook.facade.IContactItem of variable item