File path: /columba-1.4-src/calendar/src/main/java/org/columba/calendar/context/CalendarContextProvider.java | File path: /columba-1.4-src/contact/src/main/java/org/columba/addressbook/gui/context/ContactDetailsContextualProvider.java | |||
Method name: void search(ISemanticContext, int, int)
|
Method name: void search(ISemanticContext, int, int)
|
|||
Number of AST nodes: 4 | Number of AST nodes: 4 | |||
1 | IStructureValue value = context.getValue();↵ | 1 | IStructureValue value = context.getValue();↵ | |
2 | if (value == null)↵ | 2 | if (value == null)↵ | |
3 | return;↵ | 3 | return;↵ | |
4 | Iterator<IStructureValue> it = value.getChildIterator(↵ | 4 | Iterator<IStructureValue> it = value.getChildIterator(↵ | |
5 | ISemanticContext.CONTEXT_NODE_MESSAGE,↵ | 5 | ISemanticContext.CONTEXT_NODE_IDENTITY,↵ | |
6 | ISemanticContext.CONTEXT_NAMESPACE_CORE); | 6 |
| |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 8 |
Number of mapped statements | 4 |
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) | 1.2 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | IStructureValue value = context.getValue(); | 1 | IStructureValue value = context.getValue(); | |||||||||||
2 | if (value == null) | 2 | if (value == null) | |||||||||||
3 | return; |
| 3 | return; | ||||||||||
4 | Iterator<IStructureValue> it = value.getChildIterator(ISemanticContext.CONTEXT_NODE_MESSAGE, ISemanticContext.CONTEXT_NAMESPACE_CORE); |
| 4 | Iterator<IStructureValue> it = value.getChildIterator(ISemanticContext.CONTEXT_NODE_IDENTITY, ISemanticContext.CONTEXT_NAMESPACE_CORE); |
Row | Violation |
---|---|
1 | Conditional return; |
2 | Conditional return; |