ICalendarStore store = ((CalendarCommandReference) getReference())
.getStore();
ICalendarItem calendar = ((CalendarCommandReference) getReference())
.getSrcCalendar();
new CalendarExporter()
.exportCalendar(destFile, calendar.getId(), store);
Enumeration e = new ExtensionXMLParser().loadExtensionsFromStream(is,
null, true);
while (e.hasMoreElements()) {
IExtension extension = (IExtension) e.nextElement();
addExtension(extension.getMetadata().getId(), extension);
}
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/command/ExportCalendarCommand.java
|
|
File path: /columba-1.4-src/core/src/main/java/org/columba/core/plugin/ExtensionHandler.java
|
Method name: void execute(IWorkerStatusController)
|
|
Method name: void loadExtensionsFromStream(InputStream)
|
Number of AST nodes: 3
|
|
Number of AST nodes: 4
|
|
1 | ICalendarStore store = ((CalendarCommandReference) getReference())↵ | | |
|
2 | .getStore();↵ | | |
|
3 | ICalendarItem calendar = ((CalendarCommandReference) getReference())↵ | | |
|
4 | .getSrcCalendar↵ | | 1 | Enumeration e = new ExtensionXMLParser().loadExtensionsFromStream(is,↵
|
| | | 2 | null, true);↵
|
| | | 3 | while (e.hasMoreElements()) {↵
|
5 | ();↵ | | 4 | IExtension extension = (IExtension) e.nextElement();↵
|
|
6 | new CalendarExporter()↵ | | 5 | ↵
|
7 | .exportCalendar(destFile, calendar.getId(), store); | | 6 | addExtension(extension.getMetadata().getId(), extension);↵
|
| | | 7 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 in different classes |
Number of node comparisons | 3 |
-
{Non-refactorable}
Mapping Summary
Number of mapped statements | 0 |
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 | Unknown type |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
Precondition Violations (0)
Row |
Violation |