CloneSet752


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
35201.000statement_sequence[7]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
135419
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
235482
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java
Clone Instance
1
Line Count
35
Source Line
419
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java

        int dimension;
        TypeBinding originalType;
        switch (type.kind()) {
                case Binding.BASE_TYPE:
                case Binding.TYPE_PARAMETER:
                case Binding.WILDCARD_TYPE:
                case Binding.RAW_TYPE:
                        return type;
                case Binding.ARRAY_TYPE:
                        dimension = type.dimensions();
                        originalType = type.leafComponentType();
                        break;
                default:
                        if (type.id == TypeIds.T_JavaLangObject)
                                return type; // Object is not generic
                        dimension = 0;
                        originalType = type;
              }
        boolean needToConvert;
        switch (originalType.kind()) {
                case Binding.BASE_TYPE:
                        return type;
                case Binding.GENERIC_TYPE:
                        needToConvert = true;
                        break;
                case Binding.PARAMETERIZED_TYPE:
                        ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType;
                        needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments
                        break;
                default:
                        needToConvert = false;
                        break;
              }
        ReferenceBinding originalEnclosing = originalType.enclosingType();
        TypeBinding convertedType;


Clone Instance
2
Line Count
35
Source Line
482
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/LookupEnvironment.java

        int dimension;
        TypeBinding originalType;
        switch (type.kind()) {
                case Binding.BASE_TYPE:
                case Binding.TYPE_PARAMETER:
                case Binding.WILDCARD_TYPE:
                case Binding.RAW_TYPE:
                        return type;
                case Binding.ARRAY_TYPE:
                        dimension = type.dimensions();
                        originalType = type.leafComponentType();
                        break;
                default:
                        if (type.id == TypeIds.T_JavaLangObject)
                                return type; // Object is not generic
                        dimension = 0;
                        originalType = type;
              }
        boolean needToConvert;
        switch (originalType.kind()) {
                case Binding.BASE_TYPE:
                        return type;
                case Binding.GENERIC_TYPE:
                        needToConvert = true;
                        break;
                case Binding.PARAMETERIZED_TYPE:
                        ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType;
                        needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments
                        break;
                default:
                        needToConvert = false;
                        break;
              }
        ReferenceBinding originalEnclosing = originalType.enclosingType();
        TypeBinding convertedType;


Clone AbstractionParameter Count: 0Parameter Bindings

int dimension;
TypeBinding originalType;
switch (type.kind()) {
  case Binding.BASE_TYPE:
  case Binding.TYPE_PARAMETER:
  case Binding.WILDCARD_TYPE:
  case Binding.RAW_TYPE:
    return type;
  case Binding.ARRAY_TYPE:
    dimension = type.dimensions();
    originalType = type.leafComponentType();
    break;
  default:
    if (type.id == TypeIds.T_JavaLangObject)
      return type; // Object is not generic
    dimension = 0;
    originalType = type;
}
boolean needToConvert;
switch (originalType.kind()) {
  case Binding.BASE_TYPE:
    return type;
  case Binding.GENERIC_TYPE:
    needToConvert = true;
    break;
  case Binding.PARAMETERIZED_TYPE:
    ParameterizedTypeBinding paramType = (ParameterizedTypeBinding) originalType;
    needToConvert = paramType.type.isGenericType(); // only recursive call to enclosing type can find parameterizedType with arguments
    break;
  default:
    needToConvert = false;
    break;
}
ReferenceBinding originalEnclosing = originalType.enclosingType();
TypeBinding convertedType;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None