if (dtStart == null) throw new IllegalArgumentException("dtStart == null"); if (dtEnd == null) throw new IllegalArgumentException("dtEnd == null"); if (summary == null) throw new IllegalArgumentException("summary == null"); this.dtStart = dtStart;
if (dtStart == null) throw new IllegalArgumentException("dtStart == null"); if (due == null) throw new IllegalArgumentException("due == null"); if (summary == null) throw new IllegalArgumentException("summary == null"); this.dtStart = dtStart;
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/model/Event.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/model/Todo.java
Method name: void Event(Calendar, Calendar, String) Method name: void Todo(Calendar, Calendar, String)
Number of AST nodes: 7 Number of AST nodes: 7
1
if (dtStart == null)
1
if (dtStart == null)
2
			throw new IllegalArgumentException("dtStart == null");
2
			throw new IllegalArgumentException("dtStart == null");
3
		if (dtEnd == null)
3
		if (due == null)
4
			throw new IllegalArgumentException("dtEnd == null");
4
			throw new IllegalArgumentException("due == null");
5
		if (summary == null)
5
		if (summary == null)
6
			throw new IllegalArgumentException("summary == null");
6
			throw new IllegalArgumentException("summary == null");
7
		this.dtStart = dtStart;
7
		this.dtStart = dtStart;
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.4
Clones locationClones are in different classes having the same super class
Number of node comparisons28
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.9
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    2
    if (dtStart == null)
    2
    if (dtStart == null)
    3
    throw new IllegalArgumentException("dtStart == null");
    3
    throw new IllegalArgumentException("dtStart == null");
    4
    if (dtEnd == null)
    4
    if (dtEnd == null)
    4
    if (due == null)
    Differences
    Expression1Expression2Difference
    dtEnddueVARIABLE_NAME_MISMATCH
    4
    if (due == null)
    5
    throw new IllegalArgumentException("dtEnd == null");
    5
    throw new IllegalArgumentException("dtEnd == null");
    5
    throw new IllegalArgumentException("due == null");
    Differences
    Expression1Expression2Difference
    "dtEnd == null""due == null"LITERAL_VALUE_MISMATCH
    5
    throw new IllegalArgumentException("due == null");
    6
    if (summary == null)
    6
    if (summary == null)
    7
    throw new IllegalArgumentException("summary == null");
    7
    throw new IllegalArgumentException("summary == null");
    8
    this.dtStart = dtStart;
    8
    this.dtStart = dtStart;
    Precondition Violations (0)
    Row Violation