String s = location.toString(); // TODO: @author fdietz replace with regular expression int activityIndex = s.lastIndexOf('/'); String activityId = s.substring(activityIndex + 1, s.length()); int folderIndex = s.lastIndexOf('/', activityIndex - 1); String folderId = s.substring(folderIndex + 1, activityIndex); int componentIndex = s.lastIndexOf('/', folderIndex - 1); String componentId = s.substring(componentIndex + 1, folderIndex);
String s = id.toString(); // TODO: @author fdietz replace with regular expression int activityIndex = s.lastIndexOf('/'); String activityId = s.substring(activityIndex + 1, s.length()); int folderIndex = s.lastIndexOf('/', activityIndex - 1); String folderId = s.substring(folderIndex + 1, activityIndex); int componentIndex = s.lastIndexOf('/', folderIndex - 1); String componentId = s.substring(componentIndex + 1, folderIndex);
Clone fragments detected by clone detection tool
File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/facade/DialogFacade.java File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/tagging/CalendarTagList.java
Method name: void openEventEditorDialog(URI) Method name: void valueChanged(ListSelectionEvent)
Number of AST nodes: 7 Number of AST nodes: 7
1
String s = location.toString();
1
String s = id.toString();
2
		// TODO: @author fdietz replace with regular expression
2
				// TODO: @author fdietz replace with regular expression
3
		int activityIndex = s.lastIndexOf('/');
3
				int activityIndex = s.lastIndexOf('/');
4
		String activityId = s.substring(activityIndex + 1, s.length());
4
				String activityId = s.substring(activityIndex + 1, s.length());
5
		int folderIndex = s.lastIndexOf('/', activityIndex - 1);
5
				int folderIndex = s.lastIndexOf('/', activityIndex - 1);
6
		String folderId = s.substring(folderIndex + 1, activityIndex);
6
				String folderId = s.substring(folderIndex + 1, activityIndex);
7
		int componentIndex = s.lastIndexOf('/', folderIndex - 1);
7
				int componentIndex = s.lastIndexOf('/', folderIndex - 1);
8
		String componentId = s.substring(componentIndex + 1,
8
				String componentId = s.substring(componentIndex + 1,
9
				folderIndex);
9
						folderIndex);
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 comparisons0