CloneSet422


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
30210.997class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
130126
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethod.java
229470
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java
Clone Instance
1
Line Count
30
Source Line
126
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceMethod.java

public ITypeParameter[] getTypeParameters() throws JavaModelException {
        SourceMethodElementInfo info = (SourceMethodElementInfo) getElementInfo();
        return info.typeParameters;
}

/**
 * @see IMethod#getTypeParameterSignatures()
 * @since 3.0
 * @deprecated
 */
public String[] getTypeParameterSignatures() throws JavaModelException {
        ITypeParameter[] typeParameters = getTypeParameters();
        int length = typeParameters.length;
        String[] typeParameterSignatures = new String[length];
        for (int i = 0; i < length; i++) {
                TypeParameter typeParameter = (TypeParameter) typeParameters[i];
                TypeParameterElementInfo info = (TypeParameterElementInfo) typeParameter.getElementInfo();
                char[][] bounds = info.bounds;
                if (bounds == null) {
                        typeParameterSignatures[i] = Signature.createTypeParameterSignature(typeParameter.getElementName(), CharOperation.NO_STRINGS);
                }
                else   {
                        int boundsLength = bounds.length;
                        char[][] boundSignatures = new char[boundsLength][];
                        for (int j = 0; j < boundsLength; j++) {
                                boundSignatures[j] = Signature.createCharArrayTypeSignature(bounds[j], false);
                        }
                        typeParameterSignatures[i] = new String(Signature.createTypeParameterSignature(typeParameter.getElementName().toCharArray(), boundSignatures));
                }
        }
        return typeParameterSignatures;
}


Clone Instance
2
Line Count
29
Source Line
470
Source File
plugins/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/SourceType.java

public ITypeParameter[] getTypeParameters() throws JavaModelException {
        SourceTypeElementInfo info = (SourceTypeElementInfo) getElementInfo();
        return info.typeParameters;
}

/**
 * @see IType#getTypeParameterSignatures()
 * @since 3.0
 */
public String[] getTypeParameterSignatures() throws JavaModelException {
        ITypeParameter[] typeParameters = getTypeParameters();
        int length = typeParameters.length;
        String[] typeParameterSignatures = new String[length];
        for (int i = 0; i < length; i++) {
                TypeParameter typeParameter = (TypeParameter) typeParameters[i];
                TypeParameterElementInfo info = (TypeParameterElementInfo) typeParameter.getElementInfo();
                char[][] bounds = info.bounds;
                if (bounds == null) {
                        typeParameterSignatures[i] = Signature.createTypeParameterSignature(typeParameter.getElementName(), CharOperation.NO_STRINGS);
                }
                else   {
                        int boundsLength = bounds.length;
                        char[][] boundSignatures = new char[boundsLength][];
                        for (int j = 0; j < boundsLength; j++) {
                                boundSignatures[j] = Signature.createCharArrayTypeSignature(bounds[j], false);
                        }
                        typeParameterSignatures[i] = new String(Signature.createTypeParameterSignature(typeParameter.getElementName().toCharArray(), boundSignatures));
                }
        }
        return typeParameterSignatures;
}


Clone AbstractionParameter Count: 1Parameter Bindings

public ITypeParameter[] getTypeParameters() throws JavaModelException {
   [[#variable60cd8f20]] info = ( [[#variable60cd8f20]]) getElementInfo();
  return info.typeParameters;
}

/**
 * @see IMethod#getTypeParameterSignatures()
 * @since 3.0
 * @deprecated
 */
/**
 * @see IType#getTypeParameterSignatures()
 * @since 3.0
 */
public String[] getTypeParameterSignatures() throws JavaModelException {
  ITypeParameter[] typeParameters = getTypeParameters();
  int length = typeParameters.length;
  String[] typeParameterSignatures = new String[length];
  for (int i = 0; i < length; i++) {
    TypeParameter typeParameter = (TypeParameter) typeParameters[i];
    TypeParameterElementInfo info = (TypeParameterElementInfo) typeParameter.getElementInfo();
    char[][] bounds = info.bounds;
    if (bounds == null) {
      typeParameterSignatures[i] = Signature.createTypeParameterSignature(typeParameter.getElementName(), CharOperation.NO_STRINGS);
    }
    else {
      int boundsLength = bounds.length;
      char[][] boundSignatures = new char[boundsLength][];
      for (int j = 0; j < boundsLength; j++) {
        boundSignatures[j] = Signature.createCharArrayTypeSignature(bounds[j], false);
      }
      typeParameterSignatures[i] = new String(Signature.createTypeParameterSignature(typeParameter.getElementName().toCharArray(), boundSignatures));
    }
  }
  return typeParameterSignatures;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#60cd8f20]]
SourceMethodElementInfo 
12[[#60cd8f20]]
SourceTypeElementInfo