File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/MappingRootItemProvider.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/provider/FunctionNamePairItemProvider.java | |||
Method name: void notifyChanged(Notification)
|
Method name: void notifyChanged(Notification)
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | MappingPackage ePackage = MappingPackage.eINSTANCE;↵ | 1 | MappingPackage ePackage = MappingPackage.eINSTANCE;↵ | |
2 | if (msg.getFeature() == ePackage.getMappingRoot_OutputReadOnly() || msg.getFeature() == ePackage.getMappingRoot_TopToBottom())↵ | 2 | if (msg.getFeature() == ePackage.getFunctionNamePair_In2out() || msg.getFeature() == ePackage.getFunctionNamePair_Out2in())↵ | |
3 | {↵ | 3 | {↵ | |
4 | fireNotifyChanged(msg);↵ | 4 | fireNotifyChanged(msg);↵ | |
5 | //hgd::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition());↵ | 5 | // HGD::fireNotifyChanged(msg.getNotifier(), msg.getEventType(), msg.getStructuralFeature(), msg.getOldValue(), msg.getNewValue(), msg.getPosition());↵ | |
6 | return;↵ | 6 | return;↵ | |
7 | }↵ | 7 | }↵ | |
8 | super.notifyChanged(msg); | 8 |
| |
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.3 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 13 |
Number of mapped statements | 5 |
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 | MappingPackage ePackage = MappingPackage.eINSTANCE; | 1 | MappingPackage ePackage = MappingPackage.eINSTANCE; | ||||||||||||||||||
2 | if (msg.getFeature() == ePackage.getMappingRoot_OutputReadOnly() || msg.getFeature() == ePackage.getMappingRoot_TopToBottom()) |
| 2 | if (msg.getFeature() == ePackage.getFunctionNamePair_In2out() || msg.getFeature() == ePackage.getFunctionNamePair_Out2in()) | |||||||||||||||||
3 | fireNotifyChanged(msg); | 3 | fireNotifyChanged(msg); | ||||||||||||||||||
4 | return; | 4 | return; | ||||||||||||||||||
5 | super.notifyChanged(msg); | 5 | super.notifyChanged(msg); |
Row | Violation |
---|---|
1 | Expression ePackage.getMappingRoot_OutputReadOnly() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression ePackage.getFunctionNamePair_In2out() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression ePackage.getMappingRoot_TopToBottom() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression ePackage.getFunctionNamePair_Out2in() cannot be parameterized, because it has dependencies to/from statements that will be extracted |