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
		}
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.0
Clones locationClones are in different classes
Number of node comparisons3