super(); this.view = view; setEnabled(ColumbaDesktop.getInstance().supportsOpen());
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/gui/composer/OpenAttachmentAction.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/imap/IMAPFolder.java
Method name: void OpenAttachmentAction(AttachmentView) Method name: Object[] synchronizeHeaderlist()
Number of AST nodes: 3 Number of AST nodes: 4
1
super();
2
		
3
		this.view = view;
4
		
5
		setEnabled(ColumbaDesktop.getInstance().supportsOpen());
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
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.view = view;
                                        
    3
    setEnabled(ColumbaDesktop.getInstance().supportsOpen());
    3
    setEnabled(ColumbaDesktop.getInstance().supportsOpen());
    4
    purgeHeaderList();
    Differences
    Expression1Expression2Difference
    setEnabledpurgeHeaderListMETHOD_INVOCATION_NAME_MISMATCH
    setEnabled(ColumbaDesktop.getInstance().supportsOpen())purgeHeaderList()ARGUMENT_NUMBER_MISMATCH
    Preondition Violations
    Expression setEnabled(ColumbaDesktop.getInstance().supportsOpen()) 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 setEnabled(ColumbaDesktop.getInstance().supportsOpen()) 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 (5)
    Row Violation
    1Expression setEnabled(ColumbaDesktop.getInstance().supportsOpen()) 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 setEnabled(ColumbaDesktop.getInstance().supportsOpen()) 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;