super(source); this.name = name; this.result = result; this.totalResultCount = totalResultCount;
super(folder); this.dialog = dialog; this.mailbox = mailbox;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/core/src/main/java/org/columba/core/search/ResultEvent.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/config/subscribe/SubscribeCommandReference.java
Method name: void ResultEvent(Object, String, List, int) Method name: void SubscribeCommandReference(IMailFolder, SubscribeDialog, String)
Number of AST nodes: 4 Number of AST nodes: 3
1
super(source);
1
super(
2
		this.name = name;
3
		this.result = result;
4
		this.totalResultCount = totalResultCount
2
folder);
3
		this.dialog = dialog;
5
;
4
		this.mailbox = mailbox;
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 statements1
    Number of unmapped statements in the first code fragment3
    Number of unmapped statements in the second code fragment2
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 3
    Mapped Statements
    ID Statement ID Statement
                                      
    1
    super(folder);
    1
    super(source);
                                      
                                                
    2
    this.dialog = dialog;
    Preondition Violations
    Unmatched statement this.dialog=dialog; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.dialog = dialog;
    2
    this.name = name;
    2
    this.name = name;
    3
    this.mailbox = mailbox;
    Differences
    Expression1Expression2Difference
    namemailboxVARIABLE_NAME_MISMATCH
    namemailboxVARIABLE_NAME_MISMATCH
    Preondition Violations
    Expression this.name is a field being modified, and thus it cannot be parameterized
    Expression this.mailbox is a field being modified, and thus it cannot be parameterized
    3
    this.mailbox = mailbox;
    3
    this.result = result;
    3
    this.result = result;
    Preondition Violations
    Unmatched statement this.result=result; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                
    4
    this.totalResultCount = totalResultCount;
    4
    this.totalResultCount = totalResultCount;
    Preondition Violations
    Unmatched statement this.totalResultCount=totalResultCount; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                        
    Precondition Violations (6)
    Row Violation
    1Unmatched statement this.dialog=dialog; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression this.name is a field being modified, and thus it cannot be parameterized
    3Expression this.mailbox is a field being modified, and thus it cannot be parameterized
    4Unmatched statement this.result=result; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5Unmatched statement this.totalResultCount=totalResultCount; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6The refactoring of the clones is infeasible, because classes org.columba.core.search.ResultEvent and org.columba.mail.gui.config.subscribe.SubscribeCommandReference do not have a common superclass