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);
    4
    purgeHeaderList();
    Differences
    Expression1Expression2Difference
    setConfigurationpurgeHeaderListMETHOD_INVOCATION_NAME_MISMATCH
    setConfiguration(node)purgeHeaderList()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setConfiguration(node) 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 setConfiguration(node) 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();
    3
    addFolderListener(FolderEventDelegator.getInstance());
                                                                                                                      
                                                          
    5
    syncMailboxInfo(status);
                                      
    6
    return result;
    Preondition Violations
    Unmatched return result;
    6
    return result;
    Precondition Violations (5)
    Row Violation
    1Expression setConfiguration(node) is a void method call, and thus it cannot be parameterized
    2Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    3Expression setConfiguration(node) is a void method call, and thus it cannot be parameterized
    4Expression purgeHeaderList() is a void method call, and thus it cannot be parameterized
    5Unmatched return result;