CloneSet181


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23220.963block
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123535
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java
223584
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java
Next
Last
Clone Instance
1
Line Count
23
Source Line
535
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java

{
  EAnnotation eAnnotation = getAnnotation(eDataType, false);
  if (eAnnotation != null) {
    EMap<String, String> details = eAnnotation.getDetails();
    String baseType = details.get("baseType");
    if (baseType != null) {
      int index = baseType.lastIndexOf("#");
      EClassifier type = index == -1 ? getType(eDataType.getEPackage(), baseType): index == 0 ? getType((String) null, baseType.substring(1)): getType(baseType.substring(0, index), baseType.substring(index + 1));
      if (type instanceof EDataType) {
        return (EDataType) type;
      }
    }
  }
  return null;
}


First
Previous
Clone Instance
2
Line Count
23
Source Line
584
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/util/BasicExtendedMetaData.java

{
  EAnnotation eAnnotation = getAnnotation(eDataType, false);
  if (eAnnotation != null) {
    EMap<String, String> details = eAnnotation.getDetails();
    String itemType = details.get("itemType");
    if (itemType != null) {
      int index = itemType.lastIndexOf("#");
      EClassifier type = index == -1 ? getType(eDataType.getEPackage(), itemType): index == 0 ? getType((String) null, itemType.substring(1)): getType(itemType.substring(0, index), itemType.substring(index + 1));
      if (type instanceof EDataType) {
        return (EDataType) type;
      }
    }
  }
  return null;
}


Clone AbstractionParameter Count: 2Parameter Bindings

{
  EAnnotation eAnnotation = getAnnotation(eDataType, false);
  if (eAnnotation != null) {
    EMap<String, String> details = eAnnotation.getDetails();
    String  [[#variable1720c900]]= details.get( [[#variable1720c8c0]]);
    if ( [[#variable1720c900]]!= null) {
      int index = [[#variable1720c900]].lastIndexOf("#");
      EClassifier type = index == -1 ? getType(eDataType.getEPackage(),  [[#variable1720c900]]): index == 0 ? getType((String) null,  [[#variable1720c900]].substring(1)): getType( [[#variable1720c900]].substring(0, index),  [[#variable1720c900]].substring(index + 1));
      if (type instanceof EDataType) {
        return (EDataType) type;
      }
    }
  }
  return null;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#1720c900]]
baseType 
12[[#1720c900]]
itemType 
21[[#1720c8c0]]
"baseType" 
22[[#1720c8c0]]
"itemType"