File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/CalendarExporter.java | File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/parser/CalendarExporter.java | |||
Method name: void exportCalendar(File, String, ICalendarStore)
|
Method name: void exportSingleEvent(File, IComponentInfo, ICalendarStore)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | FileOutputStream fout = new FileOutputStream(file);↵ | 1 | FileOutputStream fout = new FileOutputStream(file);↵ | |
2 | CalendarOutputter outputter = new CalendarOutputter();↵ | 2 | CalendarOutputter outputter = new CalendarOutputter();↵ | |
3 | outputter.setValidating(false);↵ | 3 | outputter.setValidating(true);↵ | |
4 | Calendar calendar = new Calendar();↵ | 4 | Calendar calendar = new Calendar();↵ | |
5 | calendar.getProperties().add(↵ | 5 | calendar.getProperties().add(↵ | |
6 | new ProdId("-//Columba Project//iCal4j 1.0//EN"));↵ | 6 | new ProdId("-//Columba Project//iCal4j 1.0//EN"));↵ | |
7 | calendar.getProperties().add(Version.VERSION_2_0);↵ | 7 | calendar.getProperties().add(Version.VERSION_2_0);↵ | |
8 | calendar.getProperties().add(CalScale.GREGORIAN); | 8 |
| |
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.0 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 22 |
Number of mapped statements | 7 |
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) | 0.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | FileOutputStream fout = new FileOutputStream(file); | 1 | FileOutputStream fout = new FileOutputStream(file); | |||||||||||
2 | CalendarOutputter outputter = new CalendarOutputter(); | 2 | CalendarOutputter outputter = new CalendarOutputter(); | |||||||||||
3 | outputter.setValidating(false); |
| 3 | outputter.setValidating(true); | ||||||||||
4 | Calendar calendar = new Calendar(); | 4 | Calendar calendar = new Calendar(); | |||||||||||
5 | calendar.getProperties().add(new ProdId("-//Columba Project//iCal4j 1.0//EN")); | 5 | calendar.getProperties().add(new ProdId("-//Columba Project//iCal4j 1.0//EN")); | |||||||||||
6 | calendar.getProperties().add(Version.VERSION_2_0); | 6 | calendar.getProperties().add(Version.VERSION_2_0); | |||||||||||
7 | calendar.getProperties().add(CalScale.GREGORIAN); | 7 | calendar.getProperties().add(CalScale.GREGORIAN); |
Row | Violation |
---|---|
1 | Clone fragment #1 returns variables calendar, fout, outputter , while Clone fragment #2 returns variables calendar, fout, outputter |