File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java | File path: /emf-2.4.1/src/org/eclipse/emf/mapping/presentation/MappingEditor.java | |||
Method name: void notifyChanged(Notification)
|
Method name: void notifyChanged(Notification)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (note.getNotifier() == mappingRoot &&↵ | 1 | if (note.getNotifier() == mappingRoot &&↵ | |
2 | (note.getFeature() == MappingPackage.eINSTANCE.getMapping_Outputs() ↵ | 2 | (note.getFeature() == MappingPackage.eINSTANCE.getMapping_Outputs() ↵ | |
3 | || note.getFeature() == MappingPackage.eINSTANCE.getMapping_Inputs()))↵ | 3 | || note.getFeature() == MappingPackage.eINSTANCE.getMapping_Inputs()))↵ | |
4 | {↵ | 4 | {↵ | |
5 | rightSelectionViewer.setInput(new ItemProvider(mappingRoot.getBottoms()));↵ | 5 | leftSelectionViewer.setInput(new ItemProvider(mappingRoot.getTops()));↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | super.notifyChanged(note);↵ | 9 | super.notifyChanged(note);↵ | |
10 | } | 10 |
| |
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) | 1.0 |
Clones location | Clones are in the same java file |
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) | 2.3 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | if (note.getNotifier() == mappingRoot && (note.getFeature() == MappingPackage.eINSTANCE.getMapping_Outputs() || note.getFeature() == MappingPackage.eINSTANCE.getMapping_Inputs())) |
| 1 | if (note.getNotifier() == mappingRoot && (note.getFeature() == MappingPackage.eINSTANCE.getMapping_Outputs() || note.getFeature() == MappingPackage.eINSTANCE.getMapping_Inputs())) | |||||||||||||||
2 | rightSelectionViewer.setInput(new ItemProvider(mappingRoot.getBottoms())); |
| 2 | leftSelectionViewer.setInput(new ItemProvider(mappingRoot.getTops())); | |||||||||||||||
else | else | ||||||||||||||||||
3 | super.notifyChanged(note); | 3 | super.notifyChanged(note); |
Row | Violation |
---|---|
1 | Expression mappingRoot.getBottoms() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
2 | Expression mappingRoot.getTops() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
3 | Expression mappingRoot.getBottoms() cannot be parameterized, because it has dependencies to/from statements that will be extracted |
4 | Expression mappingRoot.getTops() cannot be parameterized, because it has dependencies to/from statements that will be extracted |