CloneSet647


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23240.951statement_sequence[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123160
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedQualifiedTypeReference.java
221130
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedSingleTypeReference.java
Clone Instance
1
Line Count
23
Source Line
160
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedQualifiedTypeReference.java

                                TypeBinding[] argTypes = new TypeBinding[argLength];
                                boolean argHasError = false;
                                for (int j = 0; j < argLength; j++) {
                                    TypeReference arg = args[j];
                                    TypeBinding argType = isClassScope ?
                                                  arg.resolveTypeArgument((ClassScope) scope, currentType, j):
                                                  arg.resolveTypeArgument((BlockScope) scope, currentType, j);
                                        if (argType == null) {
                                                argHasError = true;
                                        }
                                        else   {
                                                argTypes[j] = argType;
                                        }
                                }
                                if (argHasError) {
                                        return null;
                                }
                                if (isClassScope) {
                                        ((ClassScope) scope).superTypeReference = keep;
                                        if (((ClassScope) scope).detectHierarchyCycle(currentType, this, argTypes))
                                                return null;
                                }
                            TypeVariableBinding[] typeVariables = currentType.typeVariables();


Clone Instance
2
Line Count
21
Source Line
130
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ParameterizedSingleTypeReference.java

                TypeBinding[] argTypes = new TypeBinding[argLength];
                boolean argHasError = false;
                for (int i = 0; i < argLength; i++) {
                    TypeReference typeArgument = this.typeArguments[i];
                    TypeBinding argType = isClassScope ?
                                  typeArgument.resolveTypeArgument((ClassScope) scope, currentType, i):
                                  typeArgument.resolveTypeArgument((BlockScope) scope, currentType, i);
                     if (argType == null) {
                         argHasError = true;
                     }
                     else   {
                            argTypes[i] = argType;
                     }
                }
                if (argHasError) return null;
                if (isClassScope) {
                ((ClassScope) scope).superTypeReference = keep;
                        if (((ClassScope) scope).detectHierarchyCycle(currentType, this, argTypes))
                                return null;
                }
                TypeVariableBinding[] typeVariables = currentType.typeVariables();


Clone AbstractionParameter Count: 4Parameter Bindings

TypeBinding[] argTypes = new TypeBinding[argLength];
boolean argHasError = false;
for (int  [[#variableb1a1f420]]= 0; [[#variableb1a1f420]] < argLength; [[#variableb1a1f420]]++) {
  TypeReference  [[#variable761b17a0]]= [[#variablec30d6de0]][ [[#variableb1a1f420]]];
  TypeBinding argType = isClassScope ? [[#variable761b17a0]].resolveTypeArgument((ClassScope) scope, currentType,  [[#variableb1a1f420]]): [[#variable761b17a0]].resolveTypeArgument((BlockScope) scope, currentType,  [[#variableb1a1f420]]);
  if (argType == null) {
    argHasError = true;
  }
  else {
    argTypes[ [[#variableb1a1f420]]] = argType;
  }
}
if (argHasError)
   [[#variable9eeb77e0]]
if (isClassScope) {
  ((ClassScope) scope).superTypeReference = keep;
  if (((ClassScope) scope).detectHierarchyCycle(currentType, this, argTypes))
    return null;
}
TypeVariableBinding[] typeVariables = currentType.typeVariables();
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b1a1f420]]
j 
12[[#b1a1f420]]
i 
21[[#761b17a0]]
arg 
22[[#761b17a0]]
typeArgument 
31[[#c30d6de0]]
args 
32[[#c30d6de0]]
this.typeArguments 
41[[#9eeb77e0]]
{
  return null;
} 
42[[#9eeb77e0]]
return null;