ITodo todo = (ITodo) c;
String summary = todo.getSummary();
if (summary.indexOf(searchTerm) != -1)
result.add(id);
ITodo todo = (ITodo) c;
Calendar startDate = todo.getDtStart();
startDateLabel.setText(df.format(startDate.getTime()));
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/ui/search/SearchResultList.java
|
Method name: Iterator findBySummary(String)
|
|
Method name: Component getListCellRendererComponent(JList, Object, int, boolean, boolean)
|
Number of AST nodes: 4
|
|
Number of AST nodes: 3
|
|
1 | ITodo todo = (ITodo) c;↵ | | 1 | ITodo todo = (ITodo) c;↵
|
2 | String summary = todo.getSummary();↵ | | 2 | Calendar startDate = todo.getDtStart();↵
|
3 | if (summary.indexOf(searchTerm) != -1)↵ | | 3 | startDateLabel.setText(df.format(star↵
|
4 | result.add(id); | | 4 | tDate.getTime()));
|
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.0 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |