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);
Summary
Number of common nesting structure subtrees0
Number of refactorable cases0
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.1
Clones locationClones are declared in the same class
Number of node comparisons1