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: 7 | Number of AST nodes: 7 | |||
1 | if (isUnsettable())↵ | 1 | if (isUnsettable())↵ | |
2 | {↵ | 2 | {↵ | |
3 | if (dataClass == null)↵ | 3 | if (dataClass == null)↵ | |
4 | {↵ | 4 | {↵ | |
5 | settingDelegate = ↵ | 5 | settingDelegate = ↵ | |
6 | new InternalSettingDelegateMany↵ | 6 | new InternalSettingDelegateMany↵ | |
7 | (InternalSettingDelegateMany.DATA_UNSETTABLE_DYNAMIC, this);↵ | 7 | (InternalSettingDelegateMany.EOBJECT_RESOLVE_UNSETTABLE_DYNAMIC, this);↵ | |
8 | }↵ | 8 | }↵ | |
9 | else↵ | 9 | else↵ | |
10 | {↵ | 10 | {↵ | |
11 | settingDelegate = ↵ | 11 | settingDelegate = ↵ | |
12 | new InternalSettingDelegateMany↵ | 12 | new InternalSettingDelegateMany↵ | |
13 | (InternalSettingDelegateMany.DATA_UNSETTABLE, dataClass, this);↵ | 13 | (InternalSettingDelegateMany.EOBJECT_RESOLVE_UNSETTABLE, dataClass, this);↵ | |
14 | }↵ | 14 | }↵ | |
15 | }↵ | 15 | }↵ | |
16 | else↵ | 16 | else↵ | |
17 | {↵ | 17 | {↵ | |
18 | if (dataClass == null)↵ | 18 | if (dataClass == null)↵ | |
19 | {↵ | 19 | {↵ | |
20 | settingDelegate = ↵ | 20 | settingDelegate = ↵ | |
21 | new InternalSettingDelegateMany↵ | 21 | new InternalSettingDelegateMany↵ | |
22 | (InternalSettingDelegateMany.DATA_DYNAMIC, this);↵ | 22 | (InternalSettingDelegateMany.EOBJECT_RESOLVE_DYNAMIC, this);↵ | |
23 | }↵ | 23 | }↵ | |
24 | else↵ | 24 | else↵ | |
25 | {↵ | 25 | {↵ | |
26 | settingDelegate = ↵ | 26 | settingDelegate = ↵ | |
27 | new InternalSettingDelegateMany↵ | 27 | new InternalSettingDelegateMany↵ | |
28 | (InternalSettingDelegateMany.DATA, dataClass, this);↵ | 28 | (InternalSettingDelegateMany.EOBJECT_RESOLVE, dataClass, this);↵ | |
29 | }↵ | 29 | }↵ | |
30 | } | 30 |
| |
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.4 |
Clones location | Clones are in the same method |
Number of node comparisons | 29 |
Number of mapped statements | 7 |
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) | 22.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
60 | if (isUnsettable()) | 69 | if (isUnsettable()) | |||||||||||||||
61 | if (dataClass == null) |
| 70 | if (dataClass == null) | ||||||||||||||
62 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA_UNSETTABLE_DYNAMIC, this); |
| 71 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT_RESOLVE_UNSETTABLE_DYNAMIC, this); | ||||||||||||||
else | else | |||||||||||||||||
63 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA_UNSETTABLE, dataClass, this); |
| 72 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT_RESOLVE_UNSETTABLE, dataClass, this); | ||||||||||||||
else | else | |||||||||||||||||
64 | if (dataClass == null) |
| 73 | if (dataClass == null) | ||||||||||||||
65 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA_DYNAMIC, this); |
| 74 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT_RESOLVE_DYNAMIC, this); | ||||||||||||||
else | else | |||||||||||||||||
66 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.DATA, dataClass, this); |
| 75 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.EOBJECT_RESOLVE, 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 |
3 | Type java.lang.Class<> of variable dataClass does not match with type java.lang.Class<> of variable dataClass |
4 | Type java.lang.Class<> of variable dataClass does not match with type java.lang.Class<> of variable dataClass |