CloneSet691


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23210.967class_body_declarations[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12355
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethodElementInfo.java
227254
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java
Clone Instance
1
Line Count
23
Source Line
55
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethodElementInfo.java

public char[][][] getTypeParameterBounds() {
        int length = this.typeParameters.length;
        char[][][] typeParameterBounds = new char[length][][];
        for (int i = 0; i < length; i++) {
                try {
                        TypeParameterElementInfo info = (TypeParameterElementInfo) ((JavaElement) this.typeParameters[i]).getElementInfo();
                        typeParameterBounds[i] = info.bounds;
                } catch (JavaModelException e) {
                        // type parameter does not exist: ignore
                  }
        }
        return typeParameterBounds;
}

public char[][] getTypeParameterNames() {
        int length = this.typeParameters.length;
        if (length == 0) return CharOperation.NO_CHAR_CHAR;
        char[][] typeParameterNames = new char[length][];
        for (int i = 0; i < length; i++) {
                typeParameterNames[i] = this.typeParameters[i].getElementName().toCharArray();
        }
        return typeParameterNames;
}

public abstract boolean isConstructor();


Clone Instance
2
Line Count
27
Source Line
254
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceTypeElementInfo.java

public char[][][] getTypeParameterBounds() {
        int length = this.typeParameters.length;
        char[][][] typeParameterBounds = new char[length][][];
        for (int i = 0; i < length; i++) {
                try {
                        TypeParameterElementInfo info = (TypeParameterElementInfo) ((JavaElement) this.typeParameters[i]).getElementInfo();
                        typeParameterBounds[i] = info.bounds;
                } catch (JavaModelException e) {
                        // type parameter does not exist: ignore
                  }
        }
        return typeParameterBounds;
}

public char[][] getTypeParameterNames() {
        int length = this.typeParameters.length;
        if (length == 0) return CharOperation.NO_CHAR_CHAR;
        char[][] typeParameterNames = new char[length][];
        for (int i = 0; i < length; i++) {
                typeParameterNames[i] = this.typeParameters[i].getElementName().toCharArray();
        }
        return typeParameterNames;
}

/**
 * @see ISourceType
 */
public boolean isBinaryType() {
        return false;
}


Clone AbstractionParameter Count: 1Parameter Bindings

public char[][][] getTypeParameterBounds() {
  int length = this.typeParameters.length;
  char[][][] typeParameterBounds = new char[length][][];
  for (int i = 0; i < length; i++) {
    try {
      TypeParameterElementInfo info = (TypeParameterElementInfo) ((JavaElement) this.typeParameters[i]).getElementInfo();
      typeParameterBounds[i] = info.bounds;
    }
    catch (JavaModelException e) {
    // type parameter does not exist: ignore
    }
  }
  return typeParameterBounds;
}

public char[][] getTypeParameterNames() {
  int length = this.typeParameters.length;
  if (length == 0)
    return CharOperation.NO_CHAR_CHAR;
  char[][] typeParameterNames = new char[length][];
  for (int i = 0; i < length; i++) {
    typeParameterNames[i] = this.typeParameters[i].getElementName().toCharArray();
  }
  return typeParameterNames;
}

 [[#variable95e69700]]
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#95e69700]]
public abstract boolean isConstructor(); 
12[[#95e69700]]
/**
 * @see ISourceType
 */
public boolean isBinaryType() {
  return false;
}