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: 10 | Number of AST nodes: 10 | |||
1 | super(TYPE.EVENT);↵ | 1 | super(TYPE.TODO);↵ | |
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 (due == null)↵ | |
5 | throw new IllegalArgumentException("dtEnd == null");↵ | 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;↵ | |
9 | this.dtEnd = dtEnd;↵ | 9 | this.due = due;↵ | |
10 | this.summary = summary; | 10 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 34 |
Number of mapped statements | 10 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | super(TYPE.EVENT); |
| 1 | super(TYPE.TODO); | |||||||||||||||
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 (due == null) | |||||||||||||||
5 | throw new IllegalArgumentException("dtEnd == null"); |
| 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; | ||||||||||||||||
9 | this.dtEnd = dtEnd; |
| 9 | this.due = due; | |||||||||||||||
10 | this.summary = summary; | 10 | this.summary = summary; |
Row | Violation |
---|---|
1 | Expression this.dtEnd is a field being modified, and thus it cannot be parameterized |
2 | Expression this.due is a field being modified, and thus it cannot be parameterized |