File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xmi/impl/XMLHandler.java | File path: /emf-2.4.1/src/org/eclipse/emf/common/ui/editor/ProblemEditorPart.java | |||
Method name: void processSchemaLocations(String, String)
|
Method name: void createMarkers()
|
|||
Number of AST nodes: 2 | Number of AST nodes: 2 | |||
1 | try↵ | 1 | try↵ | |
2 | {↵ | 2 | {↵ | |
3 | ecoreBuilder.generate(urisToLocations);↵ | 3 | markerUtil.createMarkers(diagnostic);↵ | |
4 | }↵ | 4 | }↵ | |
5 | catch (Exception exception)↵ | 5 | catch (CoreException exception)↵ | |
6 | {↵ | 6 | {↵ | |
7 | XMIPlugin.INSTANCE.log(exception);↵ | 7 | openErrorDialog(CommonUIPlugin.getPlugin().getString("_UI_CreateMarkerError_message"), exception);↵ | |
8 | } | 8 |
| |
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 different classes |
Number of node comparisons | 5 |
Number of mapped statements | 1 |
Number of unmapped statements in the first code fragment | 1 |
Number of unmapped statements in the second code fragment | 1 |
Time elapsed for statement mapping (ms) | 0.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | try |
| 4 | try | ||||||||||||||||||||||||||
4 | ecoreBuilder.generate(urisToLocations); |
| | |||||||||||||||||||||||||||
|
| 5 | markerUtil.createMarkers(diagnostic); |
Row | Violation |
---|---|
1 | Expression XMIPlugin.INSTANCE.log(exception) is a void method call, and thus it cannot be parameterized |
2 | Expression openErrorDialog(CommonUIPlugin.getPlugin().getString("_UI_CreateMarkerError_message"),exception) is a void method call, and thus it cannot be parameterized |
3 | Expression XMIPlugin.INSTANCE.log(exception) is a void method call, and thus it cannot be parameterized |
4 | Expression openErrorDialog(CommonUIPlugin.getPlugin().getString("_UI_CreateMarkerError_message"),exception) is a void method call, and thus it cannot be parameterized |
5 | Unmatched statement ecoreBuilder.generate(urisToLocations); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |
6 | Unmatched statement markerUtil.createMarkers(diagnostic); cannot be moved before or after the extracted code, because it throws exception(s) that should be caught by a try block that will be extracted |