CloneSet468


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
29230.991statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12946
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocAllocationExpression.java
22956
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java
Clone Instance
1
Line Count
29
Source Line
46
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocAllocationExpression.java

                if (this.arguments != null) {
                        boolean argHasError = false;
                        int length = this.arguments.length;
                        argumentTypes = new TypeBinding[length];
                        for (int i = 0; i < length; i++) {
                                Expression argument = this.arguments[i];
                                if (scope.kind == Scope.CLASS_SCOPE) {
                                        argumentTypes[i] = argument.resolveType((ClassScope) scope);
                                }
                                else   {
                                        argumentTypes[i] = argument.resolveType((BlockScope) scope);
                                }
                                if (argumentTypes[i] == null) {
                                        argHasError = true;
                                }
                                else   if ( !hasTypeVarArgs) {
                                        hasTypeVarArgs = argumentTypes[i].isTypeVariable();
                                       }
                        }
                        if (argHasError) {
                                return null;
                        }
                }
                // check resolved type
                if (this.resolvedType == null) {
                        return null;
                }
                this.resolvedType = scope.environment().convertToRawType(this.type.resolvedType);
                SourceTypeBinding enclosingType = scope.enclosingSourceType();
                this.superAccess = enclosingType == null ? false: enclosingType.isCompatibleWith(this.resolvedType);


Clone Instance
2
Line Count
29
Source Line
56
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/JavadocMessageSend.java

                if (this.arguments != null) {
                        boolean argHasError = false; // typeChecks all arguments 
                        int length = this.arguments.length;
                        argumentTypes = new TypeBinding[length];
                        for (int i = 0; i < length; i++) {
                                Expression argument = this.arguments[i];
                                if (scope.kind == Scope.CLASS_SCOPE) {
                                        argumentTypes[i] = argument.resolveType((ClassScope) scope);
                                }
                                else   {
                                        argumentTypes[i] = argument.resolveType((BlockScope) scope);
                                }
                                if (argumentTypes[i] == null) {
                                        argHasError = true;
                                }
                                else   if ( !hasArgsTypeVar) {
                                        hasArgsTypeVar = argumentTypes[i].isTypeVariable();
                                       }
                        }
                        if (argHasError) {
                                return null;
                        }
                }
                // check receiver type
                if (this.actualReceiverType == null) {
                        return null;
                }
                this.actualReceiverType = scope.environment().convertToRawType(this.receiver.resolvedType);
                SourceTypeBinding enclosingType = scope.enclosingSourceType();
                this.superAccess = enclosingType == null ? false: enclosingType.isCompatibleWith(this.actualReceiverType);


Clone AbstractionParameter Count: 3Parameter Bindings

if (this.arguments != null) {
  boolean argHasError = false; // typeChecks all arguments 
  int length = this.arguments.length;
  argumentTypes = new TypeBinding[length];
  for (int i = 0; i < length; i++) {
    Expression argument = this.arguments[i];
    if (scope.kind == Scope.CLASS_SCOPE) {
      argumentTypes[i] = argument.resolveType((ClassScope) scope);
    }
    else {
      argumentTypes[i] = argument.resolveType((BlockScope) scope);
    }
    if (argumentTypes[i] == null) {
      argHasError = true;
    }
    else
      if ( ! [[#variableb70ba960]]) {
         [[#variableb70ba960]]= argumentTypes[i].isTypeVariable();
      }
  }
  if (argHasError) {
    return null;
  }
}
// check receiver type
// check resolved type
if (this. [[#variableb70ba560]]== null) {
  return null;
}
this. [[#variableb70ba560]]= scope.environment().convertToRawType(this. [[#variableb70ba540]].resolvedType);
SourceTypeBinding enclosingType = scope.enclosingSourceType();
this.superAccess = enclosingType == null ? false: enclosingType.isCompatibleWith(this. [[#variableb70ba560]]);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b70ba960]]
hasArgsTypeVar 
12[[#b70ba960]]
hasTypeVarArgs 
21[[#b70ba560]]
actualReceiverType 
22[[#b70ba560]]
resolvedType 
31[[#b70ba540]]
receiver 
32[[#b70ba540]]
type