File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/model/Event.java | File path: /columba-1.4-src/core/src/main/java/org/columba/core/gui/frame/FrameMediatorDockable.java | |||
Method name: void Event(Calendar, Calendar, String)
|
Method name: void FrameMediatorDockable(String, String, JComponent, JPopupMenu)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (dtStart == null)↵ | 1 | if (id == null)↵ | |
2 | throw new IllegalArgumentException("dtStart == null");↵ | 2 | throw new IllegalArgumentException("id == null");↵ | |
3 | if (dtEnd == null)↵ | 3 | if (name == null)↵ | |
4 | throw new IllegalArgumentException("dtEnd == null");↵ | 4 | throw new IllegalArgumentException("name == null");↵ | |
5 | if (summary == null)↵ | 5 | if (comp == null)↵ | |
6 | throw new IllegalArgumentException("summary == null"); | 6 | throw new IllegalArgumentException("comp == null"); | |
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.6 |
Clones location | Clones are in different classes |
Number of node comparisons | 27 |
Number of mapped statements | 6 |
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.4 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2 | if (dtStart == null) |
| 1 | if (id == null) | ||||||||||||||
3 | throw new IllegalArgumentException("dtStart == null"); |
| 2 | throw new IllegalArgumentException("id == null"); | ||||||||||||||
4 | if (dtEnd == null) |
| 3 | if (name == null) | ||||||||||||||
5 | throw new IllegalArgumentException("dtEnd == null"); |
| 4 | throw new IllegalArgumentException("name == null"); | ||||||||||||||
6 | if (summary == null) |
| 5 | if (comp == null) | ||||||||||||||
7 | throw new IllegalArgumentException("summary == null"); |
| 6 | throw new IllegalArgumentException("comp == null"); |
Row | Violation |
---|---|
1 | Type java.util.Calendar of variable dtStart does not match with type java.lang.String of variable id |
2 | Type java.util.Calendar of variable dtEnd does not match with type java.lang.String of variable name |
3 | Type java.lang.String of variable summary does not match with type javax.swing.JComponent of variable comp |
4 | The refactoring of the clones is infeasible, because classes org.columba.calendar.model.Event and org.columba.core.gui.frame.FrameMediatorDockable do not have a common superclass |