try
{
markerHelper.createMarkers(diagnostic);
}
catch (CoreException exception)
{
EcoreEditorPlugin.INSTANCE.log(exception);
}
try
{
markerHelper.createMarkers(diagnostic);
}
catch (CoreException exception)
{
Ecore2XMLUIPlugin.INSTANCE.log(exception);
}
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/presentation/EcoreEditor.java
|
|
File path: /emf-2.4.1/src/org/eclipse/emf/mapping/ecore2xml/presentation/Ecore2XMLEditor.java
|
Method name: void updateProblemIndication()
|
|
Method name: void updateProblemIndication()
|
Number of AST nodes: 2
|
|
Number of AST nodes: 2
|
|
1 | try↵ | | 1 | try↵
|
2 | {↵ | | 2 | {↵
|
3 | markerHelper.createMarkers(diagnostic);↵ | | 3 | markerHelper.createMarkers(diagnostic);↵
|
4 | }↵ | | 4 | }↵
|
5 | catch (CoreException exception)↵ | | 5 | catch (CoreException exception)↵
|
6 | {↵ | | 6 | {↵
|
7 | EcoreEditorPlugin.INSTANCE.log(exception);↵ | | 7 | Ecore2XMLUIPlugin.INSTANCE.log(exception);↵
|
8 | } | | 8 | }
|
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.5 |
Clones location | Clones are in different classes having the same super class |
Number of node comparisons | 6 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 2 |
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.6 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
23 | try | | 23 | try |
24 | markerHelper.createMarkers(diagnostic); | | 24 | markerHelper.createMarkers(diagnostic); |
Precondition Violations (0)
Row |
Violation |