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);
String s = id.toString(); // TODO: @author fdietz replace with regular expression int contactIndex = s.lastIndexOf('/'); String contactId = s.substring(contactIndex + 1, s.length()); int folderIndex = s.lastIndexOf('/', contactIndex - 1); String folderId = s.substring(folderIndex + 1, contactIndex); 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/ui/tagging/CalendarTagList.java File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/tagging/ContactTagList.java
Method name: void valueChanged(ListSelectionEvent) Method name: void valueChanged(ListSelectionEvent)
Number of AST nodes: 7 Number of AST nodes: 7
1
String s = id.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 contactIndex = s.lastIndexOf('/');
4
				String activityId = s.substring(activityIndex + 1, s.length());
4
				String contactId = s.substring(contactIndex + 1, s.length());
5
				int folderIndex = s.lastIndexOf('/', activityIndex - 1);
5
				int folderIndex = s.lastIndexOf('/', contactIndex - 1);
6
				String folderId = s.substring(folderIndex + 1, activityIndex);
6
				String folderId = s.substring(folderIndex + 1, contactIndex);
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 subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes
Number of node comparisons0
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements0
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeUnknown type
    Mapped Statements
    ID Statement ID Statement
    Precondition Violations (0)
    Row Violation