if (dataClass == null)
{
settingDelegate =
new InternalSettingDelegateMany
(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_UNSETTABLE_DYNAMIC, this, eOpposite);
}
else
{
settingDelegate =
new InternalSettingDelegateMany
(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_UNSETTABLE, dataClass, this, eOpposite);
}
if (dataClass == null)
{
settingDelegate =
new InternalSettingDelegateMany
(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_DYNAMIC, this, eOpposite);
}
else
{
settingDelegate =
new InternalSettingDelegateMany
(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE, dataClass, this, eOpposite);
}
Clone fragments detected by clone detection tool
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.MANY_INVERSE_RESOLVE_UNSETTABLE_DYNAMIC, this, eOpposite);↵ | | 5 | (InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_DYNAMIC, this, eOpposite);↵
|
6 | }↵ | | 6 | }↵
|
7 | else↵ | | 7 | else↵
|
8 | {↵ | | 8 | {↵
|
9 | settingDelegate = ↵ | | 9 | settingDelegate = ↵
|
10 | new InternalSettingDelegateMany↵ | | 10 | new InternalSettingDelegateMany↵
|
11 | (InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_UNSETTABLE, dataClass, this, eOpposite);↵ | | 11 | (InternalSettingDelegateMany.MANY_INVERSE_RESOLVE, dataClass, this, eOpposite);↵
|
12 | } | | 12 | }
|
See real code fragment |
|
See real code fragment |
Summary
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 |
-
{Non-refactorable}
Mapping Summary
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.6 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
86 | if (dataClass == null) | | 89 | if (dataClass == null) |
87 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_UNSETTABLE_DYNAMIC, this, eOpposite); | | 90 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_DYNAMIC, this, eOpposite); |
| | | | |
88 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE_UNSETTABLE, dataClass, this, eOpposite); | | 91 | settingDelegate = new InternalSettingDelegateMany(InternalSettingDelegateMany.MANY_INVERSE_RESOLVE, dataClass, this, eOpposite); |
Precondition Violations (2)
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 |