super(source); this.folder = folder; this.messageId = messageId;
super(folder); this.sourceFiles = sourceFiles; this.importer = importer;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/gui/message/MessageSelectionEvent.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/command/ImportFolderCommandReference.java
Method name: void MessageSelectionEvent(Object, IMailbox, String) Method name: void ImportFolderCommandReference(IMailFolder, File[], AbstractMailboxImporter)
Number of AST nodes: 3 Number of AST nodes: 3
1
super(source);
1
super(
2
		this.folder = folder;
3
		this.messageId = messageId
2
folder);
3
        this.sourceFiles = sourceFiles;
4
;
4
        this.importer = importer;
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 comparisons6
  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(folder);
    1
    super(source);
                                      
                                                                    
    2
    this.sourceFiles = sourceFiles;
    Preondition Violations
    Unmatched statement this.sourceFiles=sourceFiles; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2
    this.sourceFiles = sourceFiles;
    2
    this.folder = folder;
    2
    this.folder = folder;
    3
    this.importer = importer;
    Differences
    Expression1Expression2Difference
    folderimporterVARIABLE_NAME_MISMATCH
    org.columba.mail.folder.IMailboxorg.columba.mail.folder.mailboximport.AbstractMailboxImporterSUBCLASS_TYPE_MISMATCH
    folderimporterVARIABLE_NAME_MISMATCH
    org.columba.mail.folder.IMailboxorg.columba.mail.folder.mailboximport.AbstractMailboxImporterSUBCLASS_TYPE_MISMATCH
    Preondition Violations
    Expression this.folder is a field being modified, and thus it cannot be parameterized
    Expression this.importer is a field being modified, and thus it cannot be parameterized
    3
    this.importer = importer;
    3
    this.messageId = messageId;
    3
    this.messageId = messageId;
    Preondition Violations
    Unmatched statement this.messageId=messageId; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                            
    Precondition Violations (5)
    Row Violation
    1Unmatched statement this.sourceFiles=sourceFiles; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    2Expression this.folder is a field being modified, and thus it cannot be parameterized
    3Expression this.importer is a field being modified, and thus it cannot be parameterized
    4Unmatched statement this.messageId=messageId; cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    5The refactoring of the clones is infeasible, because classes org.columba.mail.gui.message.MessageSelectionEvent and org.columba.mail.command.ImportFolderCommandReference do not have a common superclass