File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/EObjectValidator.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/util/ECrossReferenceAdapter.java | |||
Method name: void DynamicEDataTypeValidator(EDataType)
|
Method name: URI normalizeURI(URI, EObject)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | ResourceSet resourceSet = resource.getResourceSet();↵ | 1 | ResourceSet resourceSetContext = resourceContext.getResourceSet();↵ | |
2 | if (resourceSet != null)↵ | 2 | if (resourceSetContext != null)↵ | |
3 | {↵ | 3 | {↵ | |
4 | extendedMetaData = new BasicExtendedMetaData(resourceSet.getPackageRegistry());↵ | 4 | return resourceSetContext.getURIConverter().normalize(uri);↵ | |
5 | } | 5 |
| |
See real code fragment | See real code fragment |
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.1 |
Clones location | Clones are in different classes |
Number of node comparisons | 6 |
Number of mapped statements | 2 |
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 | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4 | ResourceSet resourceSet = resource.getResourceSet(); |
| 10 | ResourceSet resourceSetContext = resourceContext.getResourceSet(); | |||||||||||||
5 | if (resourceSet != null) |
| 11 | if (resourceSetContext != null) | |||||||||||||
6 | extendedMetaData = new BasicExtendedMetaData(resourceSet.getPackageRegistry()); | | |||||||||||||||
| 12 | return resourceSetContext.getURIConverter().normalize(uri); |
Row | Violation |
---|