Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
10 | 2 | 3 | 0.978 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 10 | 296 | E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java |
2 | 10 | 327 | E:/TSE/Projects-CloneDR/columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java |
| |||||
if (c.getType().equals(IComponent.TYPE.TODO)) { ITodo todo = (ITodo) c; Calendar startDate = todo.getDtStart(); Calendar endDate = todo.getDue(); IDateRange dr = new DateRange(startDate, endDate); if (dateRange.equals(dr)) result.add(id); } else throw new IllegalArgumentException("unsupported component type " + c.getType()); |
| |||||
if (c.getType().equals(IComponent.TYPE.TODO)) { ITodo todo = (ITodo) c; Calendar sd = todo.getDtStart(); Calendar endDate = todo.getDue(); IDateRange dr = new DateRange(startDate, endDate); if (startDate.equals(sd)) result.add(id); } else throw new IllegalArgumentException("unsupported component type " + c.getType()); |
| |||
if (c.getType().equals(IComponent.TYPE.TODO)) { ITodo todo = (ITodo) c; Calendar [[#variable13221c80]]= todo.getDtStart(); Calendar endDate = todo.getDue(); IDateRange dr = new DateRange(startDate, endDate); if ( [[#variable13221c20]].equals( [[#variable13221bc0]])) result.add(id); } else throw new IllegalArgumentException("unsupported component type " + c.getType()); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#13221c80]] | startDate |
1 | 2 | [[#13221c80]] | sd |
2 | 1 | [[#13221c20]] | dateRange |
2 | 2 | [[#13221c20]] | startDate |
3 | 1 | [[#13221bc0]] | dr |
3 | 2 | [[#13221bc0]] | sd |