addAnnotation (getXMLNamespaceDocumentRoot_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getXMLNamespaceDocumentRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", "name", "xmlns:prefix" }); addAnnotation (getXMLNamespaceDocumentRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", "name", "xsi:schemaLocation" });
addAnnotation (getXMLTypeDocumentRoot_Mixed(), source, new String[] { "kind", "elementWildcard", "name", ":mixed" }); addAnnotation (getXMLTypeDocumentRoot_XMLNSPrefixMap(), source, new String[] { "kind", "attribute", "name", "xmlns:prefix" }); addAnnotation (getXMLTypeDocumentRoot_XSISchemaLocation(), source, new String[] { "kind", "attribute", "name", "xsi:schemaLocation" });
Clone fragments detected by clone detection tool
File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/namespace/impl/XMLNamespacePackageImpl.java File path: /emf-2.4.1/src/org/eclipse/emf/ecore/xml/type/impl/XMLTypePackageImpl.java
Method name: void createExtendedMetaDataAnnotations() Method name: void createExtendedMetaDataAnnotations()
Number of AST nodes: 3 Number of AST nodes: 3
1
addAnnotation
1
addAnnotation
2
      (getXMLNamespaceDocumentRoot_Mixed(), 
2
      (getXMLTypeDocumentRoot_Mixed(), 
3
       source, 
3
       source, 
4
       new String[] 
4
       new String[] 
5
       {
5
       {
6
       "kind", "elementWildcard",
6
       "kind", "elementWildcard",
7
       "name", ":mixed"
7
       "name", ":mixed"
8
       });		
8
       });		
9
    addAnnotation
9
    addAnnotation
10
      (getXMLNamespaceDocumentRoot_XMLNSPrefixMap(), 
10
      (getXMLTypeDocumentRoot_XMLNSPrefixMap(), 
11
       source, 
11
       source, 
12
       new String[] 
12
       new String[] 
13
       {
13
       {
14
       "kind", "attribute",
14
       "kind", "attribute",
15
       "name", "xmlns:prefix"
15
       "name", "xmlns:prefix"
16
       });		
16
       });		
17
    addAnnotation
17
    addAnnotation
18
      (getXMLNamespaceDocumentRoot_XSISchemaLocation(), 
18
      (getXMLTypeDocumentRoot_XSISchemaLocation(), 
19
       source, 
19
       source, 
20
       new String[] 
20
       new String[] 
21
       {
21
       {
22
       "kind", "attribute",
22
       "kind", "attribute",
23
       "name", "xsi:schemaLocation"
23
       "name", "xsi:schemaLocation"
24
       });
24
       });
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    addAnnotation(getXMLNamespaceDocumentRoot_Mixed(), source, new String[] {"kind", "elementWildcard", "name", ":mixed"});
    7
    addAnnotation(getXMLNamespaceDocumentRoot_Mixed(), source, new String[] {"kind", "elementWildcard", "name", ":mixed"});
    72
    addAnnotation(getXMLTypeDocumentRoot_Mixed(), source, new String[] {"kind", "elementWildcard", "name", ":mixed"});
    Differences
    Expression1Expression2Difference
    getXMLNamespaceDocumentRoot_MixedgetXMLTypeDocumentRoot_MixedMETHOD_INVOCATION_NAME_MISMATCH
    72
    addAnnotation(getXMLTypeDocumentRoot_Mixed(), source, new String[] {"kind", "elementWildcard", "name", ":mixed"});
    8
    addAnnotation(getXMLNamespaceDocumentRoot_XMLNSPrefixMap(), source, new String[] {"kind", "attribute", "name", "xmlns:prefix"});
    8
    addAnnotation(getXMLNamespaceDocumentRoot_XMLNSPrefixMap(), source, new String[] {"kind", "attribute", "name", "xmlns:prefix"});
    73
    addAnnotation(getXMLTypeDocumentRoot_XMLNSPrefixMap(), source, new String[] {"kind", "attribute", "name", "xmlns:prefix"});
    Differences
    Expression1Expression2Difference
    getXMLNamespaceDocumentRoot_XMLNSPrefixMapgetXMLTypeDocumentRoot_XMLNSPrefixMapMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression getXMLNamespaceDocumentRoot_XMLNSPrefixMap() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression getXMLTypeDocumentRoot_XMLNSPrefixMap() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    73
    addAnnotation(getXMLTypeDocumentRoot_XMLNSPrefixMap(), source, new String[] {"kind", "attribute", "name", "xmlns:prefix"});
    9
    addAnnotation(getXMLNamespaceDocumentRoot_XSISchemaLocation(), source, new String[] {"kind", "attribute", "name", "xsi:schemaLocation"});
    9
    addAnnotation(getXMLNamespaceDocumentRoot_XSISchemaLocation(), source, new String[] {"kind", "attribute", "name", "xsi:schemaLocation"});
    74
    addAnnotation(getXMLTypeDocumentRoot_XSISchemaLocation(), source, new String[] {"kind", "attribute", "name", "xsi:schemaLocation"});
    Differences
    Expression1Expression2Difference
    getXMLNamespaceDocumentRoot_XSISchemaLocationgetXMLTypeDocumentRoot_XSISchemaLocationMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression getXMLNamespaceDocumentRoot_XSISchemaLocation() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    Expression getXMLTypeDocumentRoot_XSISchemaLocation() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    74
    addAnnotation(getXMLTypeDocumentRoot_XSISchemaLocation(), source, new String[] {"kind", "attribute", "name", "xsi:schemaLocation"});
    Precondition Violations (4)
    Row Violation
    1Expression getXMLNamespaceDocumentRoot_XMLNSPrefixMap() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    2Expression getXMLTypeDocumentRoot_XMLNSPrefixMap() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    3Expression getXMLNamespaceDocumentRoot_XSISchemaLocation() cannot be parameterized, because it has dependencies to/from statements that will be extracted
    4Expression getXMLTypeDocumentRoot_XSISchemaLocation() cannot be parameterized, because it has dependencies to/from statements that will be extracted