if (adapterFactory instanceof IChangeNotifier)
{
IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory;
adapterFactoryChangeNotifier.fireNotifyChanged(notification);
}
if (changeNotifier != null)
{
changeNotifier.fireNotifyChanged(notification);
}
if (adapterFactory instanceof IChangeNotifier)
{
IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory;
adapterFactoryChangeNotifier.fireNotifyChanged(notification);
}
if (changeNotifier != null)
{
changeNotifier.fireNotifyChanged(notification);
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/ItemProviderDecorator.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/edit/provider/DelegatingWrapperItemProvider.java
|
Method name: void fireNotifyChanged(Notification)
|
|
Method name: void fireNotifyChanged(Notification)
|
Number of AST nodes: 5
|
|
Number of AST nodes: 5
|
|
1 | if (adapterFactory instanceof IChangeNotifier)↵ | | 1 | if (adapterFactory instanceof IChangeNotifier)↵
|
2 | {↵ | | 2 | {↵
|
3 | IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory;↵ | | 3 | IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory;↵
|
4 | adapterFactoryChangeNotifier.fireNotifyChanged(notification);↵ | | 4 | adapterFactoryChangeNotifier.fireNotifyChanged(notification);↵
|
5 | }↵ | | 5 | }↵
|
6 | if (changeNotifier != null)↵ | | 6 | if (changeNotifier != null)↵
|
7 | {↵ | | 7 | {↵
|
8 | changeNotifier.fireNotifyChanged(notification);↵ | | 8 | changeNotifier.fireNotifyChanged(notification);↵
|
9 | } | | 9 | }
|
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.2 |
Clones location | Clones are in different classes |
Number of node comparisons | 20 |
-
{Refactorable}
Mapping Summary
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) | 0.5 |
Clone type | Type 1 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
1 | if (adapterFactory instanceof IChangeNotifier) | | 1 | if (adapterFactory instanceof IChangeNotifier) |
2 | IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory; | | 2 | IChangeNotifier adapterFactoryChangeNotifier = (IChangeNotifier)adapterFactory; |
3 | adapterFactoryChangeNotifier.fireNotifyChanged(notification); | | 3 | adapterFactoryChangeNotifier.fireNotifyChanged(notification); |
4 | if (changeNotifier != null) | | 4 | if (changeNotifier != null) |
5 | changeNotifier.fireNotifyChanged(notification); | | 5 | changeNotifier.fireNotifyChanged(notification); |
Precondition Violations (0)
Row |
Violation |