IEvent event = (IEvent) c;
Calendar sd = event.getDtStart();
if (startDate.equals(sd))
result.add(id);
ITodo todo = (ITodo) c;
String summary = todo.getSummary();
if (summary.indexOf(searchTerm) != -1)
result.add(id);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java
|
|
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/store/LocalCalendarStore.java
|
Method name: Iterator findByStartDate(Calendar)
|
|
Method name: Iterator findBySummary(String)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 4
|
|
1 | IEvent event = (IEvent) c;↵ | | 1 | I↵
|
2 | Calendar sd = event.getDtSt↵ | | 2 | Todo todo = (ITodo) c;↵
|
3 | art();↵ | | 3 | String summary = todo.getSummary();↵
|
4 | if (startDate.equals(sd))↵ | | 4 | if (summary.indexOf(searchTerm) != -1)↵
|
5 | result.add(id); | | 5 | result.add(id);
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 0 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 1 |