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 |
| |
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 in different classes |
Number of node comparisons | 0 |
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 |
ID | Statement | ID | Statement |
---|
Row | Violation |
---|