File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/impl/EStructuralFeatureImpl.java | |||
Method name: EStructuralFeature.Internal.SettingDelegate getSettingDelegate()
|
Method name: EStructuralFeature.Internal.SettingDelegate getSettingDelegate()
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | if (dataClass == null)↵ | 1 | if (dataClass == null)↵ | |
2 | {↵ | 2 | {↵ | |
3 | settingDelegate = ↵ | 3 | settingDelegate = ↵ | |
4 | new InternalSettingDelegateMany↵ | 4 | new InternalSettingDelegateMany↵ | |
5 | (InternalSettingDelegateMany.DATA_UNSETTABLE_DYNAMIC, this);↵ | 5 | (InternalSettingDelegateMany.EOBJECT_DYNAMIC, this);↵ | |
6 | }↵ | 6 | }↵ | |
7 | else↵ | 7 | else↵ | |
8 | {↵ | 8 | {↵ | |
9 | settingDelegate = ↵ | 9 | settingDelegate = ↵ | |
10 | new InternalSettingDelegateMany↵ | 10 | new InternalSettingDelegateMany↵ | |
11 | (InternalSettingDelegateMany.DATA_UNSETTABLE, dataClass, this);↵ | 11 | (InternalSettingDelegateMany.EOBJECT, dataClass, this);↵ | |
12 | } | 12 |
| |
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.2 |
Clones location | Clones are in the same method |
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) | 1.0 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
61 | if (dataClass == null) |
| 80 | if (dataClass == null) | ||||||||||||||
62 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA_UNSETTABLE_DYNAMIC, this); |
| 81 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT_DYNAMIC, this); | ||||||||||||||
else | else | |||||||||||||||||
63 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA_UNSETTABLE, dataClass, this); |
| 82 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT, dataClass, this); |
Row | Violation |
---|---|
1 | Type java.lang.Class<> of variable dataClass does not match with type java.lang.Class<> of variable dataClass |
2 | Type java.lang.Class<> of variable dataClass does not match with type java.lang.Class<> of variable dataClass |