super(); setConfiguration(node); // register interest on tree node changes addFolderListener(FolderEventDelegator.getInstance());
if (status.getMessages() == 0) { purgeHeaderList(); syncMailboxInfo(status); return result; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/AbstractFolder.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/imap/IMAPFolder.java
Method name: void AbstractFolder(FolderItem) Method name: Object[] synchronizeHeaderlist()
Number of AST nodes: 3 Number of AST nodes: 4
1
super();
2
		setConfiguration(node);
3
		// register interest on tree node changes
4
		addFolderListener(FolderEventDelegator.getInstance());
1
if (status.getMessages() == 0) {
2
			purgeHeaderList();
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 having the same super class
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
    setConfiguration(node);
    2
    setConfiguration(node);
    Preondition Violations
    Unmatched statement setConfiguration(node); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                        
    3
    addFolderListener(FolderEventDelegator.getInstance());
    3
    addFolderListener(FolderEventDelegator.getInstance());
    4
    purgeHeaderList();
    Differences
    Expression1Expression2Difference
    addFolderListenerpurgeHeaderListMETHOD_INVOCATION_NAME_MISMATCH
    addFolderListener(FolderEventDelegator.getInstance())purgeHeaderList()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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 (10)
    Row Violation
    1Unmatched statement setConfiguration(node); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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 addFolderListener(FolderEventDelegator.getInstance()) 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;