File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/ui/tagging/TagCalendarMenu.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/action/TagContactMenu.java | |||
Method name: void removeAllTags()
|
Method name: void removeAllTags()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | for (Iterator<ITag> iter = TagManager.getInstance().getAllTags(); iter↵ | 1 | for (Iterator<ITag> iter = TagManager.getInstance().getAllTags(); iter↵ | |
2 | .hasNext();) {↵ | 2 | .hasNext();) {↵ | |
3 | ITag tag = iter.next();↵ | 3 | ITag tag = iter.next();↵ | |
4 | AssociationStore.getInstance().removeAssociation(SERVICE_ID,↵ | 4 | AssociationStore.getInstance().removeAssociation(SERVICE_ID,↵ | |
5 | tag.getId(), createURI(calendarId, activityId).toString());↵ | 5 | tag.getId(), createURI(folderId, contactId).toString());↵ | |
6 | } | 6 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
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) | 7.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | for (Iterator<ITag> iter = TagManager.getInstance().getAllTags(); iter.hasNext(); ) | 3 | for (Iterator<ITag> iter = TagManager.getInstance().getAllTags(); iter.hasNext(); ) | ||||||||||||||
5 | ITag tag = iter.next(); | 4 | ITag tag = iter.next(); | ||||||||||||||
6 | AssociationStore.getInstance().removeAssociation(SERVICE_ID, tag.getId(), createURI(calendarId, activityId).toString()); |
| 5 | AssociationStore.getInstance().removeAssociation(SERVICE_ID, tag.getId(), createURI(folderId, contactId).toString()); |
Row | Violation |
---|