super(); this.frameMediator = frameMediator; addListSelectionListener(new MyListSelectionListener());
if (status.getMessages() == 0) { purgeHeaderList(); syncMailboxInfo(status); return result; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/tagging/ContactTagList.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/imap/IMAPFolder.java
Method name: void ContactTagList(IFrameMediator) Method name: Object[] synchronizeHeaderlist()
Number of AST nodes: 3 Number of AST nodes: 4
1
super();
2
		this.frameMediator = frameMediator
1
if (status.getMessages() == 0) {
3
;
2
			purgeHeaderList();
4
		addListSelectionListener(new MyListSelectionListener());
3
			syncMailboxInfo(status);
4
			return result;
5
		}
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 comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements1
    Number of unmapped statements in the first code fragment2
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    super();
                          
    2
    this.frameMediator = frameMediator;
    2
    this.frameMediator = frameMediator;
    Preondition Violations
    Unmatched statement this.frameMediator=frameMediator; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                            
    3
    addListSelectionListener(new MyListSelectionListener());
    3
    addListSelectionListener(new MyListSelectionListener());
    4
    purgeHeaderList();
    Differences
    Expression1Expression2Difference
    addListSelectionListenerpurgeHeaderListMETHOD_INVOCATION_NAME_MISMATCH
    addListSelectionListener(new MyListSelectionListener())purgeHeaderList()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression purgeHeaderList() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method purgeHeaderList
    Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression purgeHeaderList() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method purgeHeaderList
    Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    4
    purgeHeaderList();
                                                          
    5
    syncMailboxInfo(status);
                                      
    6
    return result;
    Preondition Violations
    Unmatched return result;
    6
    return result;
    Precondition Violations (11)
    Row Violation
    1Unmatched statement this.frameMediator=frameMediator; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression purgeHeaderList() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    5Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    6Expression addListSelectionListener(new MyListSelectionListener()) cannot be parameterized, because it has dependencies to/from statements that will be extracted
    7Expression purgeHeaderList() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    8Expression addListSelectionListener(new MyListSelectionListener()) is a void method call, and thus it cannot be parameterized
    9Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    10Unmatched return result;
    11The refactoring of the clones is infeasible, because classes org.columba.addressbook.gui.tagging.ContactTagList and org.columba.mail.folder.imap.IMAPFolder do not have a common superclass