File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/util/XMLNamespaceValidator.java | File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/util/XMLNamespaceValidator.java | |||
Method name: boolean validateLangType_MemberTypes(String, DiagnosticChain, Map
|
Method name: boolean validateLangType_MemberTypes(String, DiagnosticChain, Map
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType))↵ | 1 | if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType))↵ | |
2 | {↵ | 2 | {↵ | |
3 | if (xmlTypeValidator.validateLanguage(langType, tempDiagnostics, context)) return true;↵ | 3 | if (xmlTypeValidator.validateLanguage(langType, null, context)) return true;↵ | |
4 | }↵ | 4 | }↵ | |
5 | if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType))↵ | 5 | if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType))↵ | |
6 | {↵ | 6 | {↵ | |
7 | if (validateLangTypeNull(langType, tempDiagnostics, context)) return true;↵ | 7 | if (validateLangTypeNull(langType, null, context)) return true;↵ | |
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.6 |
Clones location | Clones are in the same method |
Number of node comparisons | 15 |
Number of mapped statements | 6 |
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 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3 | if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType)) | 11 | if (XMLTypePackage.Literals.LANGUAGE.isInstance(langType)) | |||||||||||
4 | if (xmlTypeValidator.validateLanguage(langType, tempDiagnostics, context)) |
| 12 | if (xmlTypeValidator.validateLanguage(langType, null, context)) | ||||||||||
5 | return true; |
| 13 | return true; | ||||||||||
6 | if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType)) | 14 | if (XMLNamespacePackage.Literals.LANG_TYPE_NULL.isInstance(langType)) | |||||||||||
7 | if (validateLangTypeNull(langType, tempDiagnostics, context)) |
| 15 | if (validateLangTypeNull(langType, null, context)) | ||||||||||
8 | return true; |
| 16 | return true; |
Row | Violation |
---|---|
1 | Conditional return true; |
2 | Conditional return true; |
3 | Conditional return true; |
4 | Conditional return true; |