if (!(model instanceof FilteringModel)) { throw new IllegalArgumentException(); } else { super.setModel(model); }
if (!(model instanceof FilteringModel)) { throw new IllegalArgumentException(); } else { super.setModel(model); }
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/contact/src/main/java/org/columba/contact/gui/box/ContactList.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/box/CalendarList.java
Method name: void setModel(ListModel) Method name: void setModel(ListModel)
Number of AST nodes: 3 Number of AST nodes: 3
1
if (!(model instanceof FilteringModel)) {
1
if (!(model instanceof FilteringModel)) {
2
			throw new IllegalArgumentException();
2
			throw new IllegalArgumentException();
3
		} else {
3
		} else {
4
			super.setModel(model);
4
			super.setModel(model);
5
		}
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.3
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)1.1
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    1
    if (!(model instanceof FilteringModel))
    1
    if (!(model instanceof FilteringModel))
    1
    if (!(model instanceof FilteringModel))
    Differences
    Expression1Expression2Difference
    org.columba.contact.gui.box.FilteringModelorg.columba.calendar.ui.box.FilteringModelSUBCLASS_TYPE_MISMATCH
    1
    if (!(model instanceof FilteringModel))
    2
    throw new IllegalArgumentException();
    2
    throw new IllegalArgumentException();
    else
    else
    3
    super.setModel(model);
    3
    super.setModel(model);
    3
    super.setModel(model);
    Preondition Violations
    Super method call super.setModel(model); cannot be extracted from method
    Super method call super.setModel(model); cannot be extracted from method
    3
    super.setModel(model);
    Precondition Violations (2)
    Row Violation
    1Super method call super.setModel(model); cannot be extracted from method
    2Super method call super.setModel(model); cannot be extracted from method