CloneSet38


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
67230.986class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1671701
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java
267381
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java
Next
Last
Clone Instance
1
Line Count
67
Source Line
1701
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EClassImpl.java

@Override protected int delegateSize() {
  return getEGenericSuperTypes().size();
}

@Override protected Object[] delegateToArray() {
  int size = delegateSize();
  Object[] result = new Object[size];
  int index = 0;
  for (EGenericType eGenericType: getEGenericSuperTypes()) {
    result[index++ ] = unwrap(eGenericType);
  }
  return result;
}

@Override protected <T>T[] delegateToArray(T[] array) {
  int size = delegateSize();
  if (array.length < size) {
    @SuppressWarnings("unchecked")T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), size);
    array = newArray;
  }
  if (array.length > size) {
    array[size] = null;
  }
  int index = 0;
  for (EGenericType eGenericType: getEGenericSuperTypes()) {
    @SuppressWarnings("unchecked")T rawType = (T) unwrap(eGenericType);
    array[index++ ] = rawType;
  }
  return array;
}

@Override protected String delegateToString() {
  StringBuffer stringBuffer = new StringBuffer();
  stringBuffer.append("[");
  EList<EGenericType> eGenericSuperTypes = getEGenericSuperTypes();
  for (int i = 0, size = delegateSize(); i < size;) {
    stringBuffer.append(String.valueOf(unwrap(eGenericSuperTypes.get(i))));
    if ( ++i < size) {
      stringBuffer.append(", ");
    }
  }
  stringBuffer.append("]");
  return stringBuffer.toString();
}

@Override protected boolean isInstance(Object object) {
  return object instanceof EClass;
}


First
Previous
Clone Instance
2
Line Count
67
Source Line
381
Source File
E:/TSE/Projects-CloneDR/emf-2.4.1/src/org/eclipse/emf/ecore/impl/EOperationImpl.java

@Override protected int delegateSize() {
  return getEGenericExceptions().size();
}

@Override protected Object[] delegateToArray() {
  int size = delegateSize();
  Object[] result = new Object[size];
  int index = 0;
  for (EGenericType eGenericType: getEGenericExceptions()) {
    result[index++ ] = unwrap(eGenericType);
  }
  return result;
}

@Override protected <T>T[] delegateToArray(T[] array) {
  int size = delegateSize();
  if (array.length < size) {
    @SuppressWarnings("unchecked")T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), size);
    array = newArray;
  }
  if (array.length > size) {
    array[size] = null;
  }
  int index = 0;
  for (EGenericType eGenericType: getEGenericExceptions()) {
    @SuppressWarnings("unchecked")T rawType = (T) unwrap(eGenericType);
    array[index++ ] = rawType;
  }
  return array;
}

@Override protected String delegateToString() {
  StringBuffer stringBuffer = new StringBuffer();
  stringBuffer.append("[");
  EList<EGenericType> eGenericExceptions = getEGenericExceptions();
  for (int i = 0, size = delegateSize(); i < size;) {
    stringBuffer.append(String.valueOf(unwrap(eGenericExceptions.get(i))));
    if ( ++i < size) {
      stringBuffer.append(", ");
    }
  }
  stringBuffer.append("]");
  return stringBuffer.toString();
}

@Override protected boolean isInstance(Object object) {
  return object instanceof EClassifier;
}


Clone AbstractionParameter Count: 3Parameter Bindings

@Override protected int delegateSize() {
  return [[#variable14684640]]().size();
}

@Override protected Object[] delegateToArray() {
  int size = delegateSize();
  Object[] result = new Object[size];
  int index = 0;
  for (EGenericType eGenericType: [[#variable14684640]]()) {
    result[index++ ] = unwrap(eGenericType);
  }
  return result;
}

@Override protected <T>T[] delegateToArray(T[] array) {
  int size = delegateSize();
  if (array.length < size) {
    @SuppressWarnings("unchecked")T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), size);
    array = newArray;
  }
  if (array.length > size) {
    array[size] = null;
  }
  int index = 0;
  for (EGenericType eGenericType: [[#variable14684640]]()) {
    @SuppressWarnings("unchecked")T rawType = (T) unwrap(eGenericType);
    array[index++ ] = rawType;
  }
  return array;
}

@Override protected String delegateToString() {
  StringBuffer stringBuffer = new StringBuffer();
  stringBuffer.append("[");
  EList<EGenericType>  [[#variable146845a0]]= [[#variable14684640]]();
  for (int i = 0, size = delegateSize(); i < size;) {
    stringBuffer.append(String.valueOf(unwrap( [[#variable146845a0]].get(i))));
    if ( ++i < size) {
      stringBuffer.append(", ");
    }
  }
  stringBuffer.append("]");
  return stringBuffer.toString();
}

@Override protected boolean isInstance(Object object) {
  return object instanceof [[#variable14684520]];
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#14684640]]
getEGenericSuperTypes 
12[[#14684640]]
getEGenericExceptions 
21[[#146845a0]]
eGenericSuperTypes 
22[[#146845a0]]
eGenericExceptions 
31[[#14684520]]
EClass 
32[[#14684520]]
EClassifier