super.setModel(model); initColumns(); setIntercellSpacing(new Dimension(0, 0));
if (message.getAccountUid() == actList.getAccountUid()) { actList.add(message); releaseMutex(); return; }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/list/CheckableList.java File path: /columba-1.4-src/mail/src/main/java/org/columba/mail/folder/outbox/SendListManager.java
Method name: void setModel(TableModel) Method name: void add(SendableMessage)
Number of AST nodes: 3 Number of AST nodes: 4
1
super.setModel(model);
2
		initColumns();
3
		setIntercellSpacing(new Dimension(0, 0));
1
if (message.getAccountUid() == actList.getAccountUid()) {
2
                actList.add(message);
3
                releaseMutex();
4
                return;
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.setModel(model);
    1
    super.setModel(model);
    9
    releaseMutex();
    Differences
    Expression1Expression2Difference
    super.setModel(model)releaseMutex()TYPE_COMPATIBLE_REPLACEMENT
    Preondition Violations
    Expression releaseMutex() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    • Inline private method releaseMutex
    Expression super.setModel(model) is a void method call, and thus it cannot be parameterized
    Expression releaseMutex() is a void method call, and thus it cannot be parameterized
    Super method call super.setModel(model); cannot be extracted from method
    9
    releaseMutex();
    2
    initColumns();
                                      
    3
    setIntercellSpacing(new Dimension(0, 0));
    3
    setIntercellSpacing(new Dimension(0, 0));
    Preondition Violations
    Unmatched statement setIntercellSpacing(new Dimension(0,0)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
                                                                                          
                                                    
    8
    actList.add(message);
    Preondition Violations
    Unmatched statement actList.add(message); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    8
    actList.add(message);
                          
    10
    return;
    Preondition Violations
    Unmatched return;
    10
    return;
    Precondition Violations (8)
    Row Violation
    1Expression releaseMutex() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression super.setModel(model) is a void method call, and thus it cannot be parameterized
    3Expression releaseMutex() is a void method call, and thus it cannot be parameterized
    4Super method call super.setModel(model); cannot be extracted from method
    5Unmatched statement setIntercellSpacing(new Dimension(0,0)); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    6Unmatched statement actList.add(message); cannot be moved before the extracted code, because it has control dependencies from statements that will be extracted
    7Unmatched return;
    8The refactoring of the clones is infeasible, because classes org.columba.calendar.ui.list.CheckableList and org.columba.mail.folder.outbox.SendListManager do not have a common superclass