CloneSet672


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
23210.977class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
123124
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java
223148
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java
Clone Instance
1
Line Count
23
Source Line
124
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java

public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
        // handle the error here
        this.constant = Constant.NotAConstant;
        if (this.resolvedType != null) // is a shared type reference which was already resolved
                return this.resolvedType.isValidBinding() ? this.resolvedType:  null; // already reported error

        TypeBinding type = this.resolvedType = getTypeBinding(scope);
        if (this.resolvedType == null)
                return null; // detected cycle while resolving hierarchy        
        if ( !this.resolvedType.isValidBinding()) {
                reportInvalidType(scope);
                return null;
        }
        if (isTypeUseDeprecated(type, scope))
                reportDeprecatedType(scope);

        type = scope.environment().convertToRawType(type);
        if (type.leafComponentType().isRawType() &&
                           (this.bits&  IgnoreRawTypeCheck) == 0 &&
                           scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
                scope.problemReporter().rawTypeReference(this, type);
        }
        return this.resolvedType = type;
}


Clone Instance
2
Line Count
23
Source Line
148
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/TypeReference.java

public TypeBinding resolveType(ClassScope scope) {
        // handle the error here
        this.constant = Constant.NotAConstant;
        if (this.resolvedType != null) // is a shared type reference which was already resolved
                return this.resolvedType.isValidBinding() ? this.resolvedType:  null; // already reported error

        TypeBinding type = this.resolvedType = getTypeBinding(scope);
        if (this.resolvedType == null)
                return null; // detected cycle while resolving hierarchy        
        if ( !this.resolvedType.isValidBinding()) {
                reportInvalidType(scope);
                return null;
        }
        if (isTypeUseDeprecated(type, scope))
                reportDeprecatedType(scope);

        type = scope.environment().convertToRawType(type);
        if (type.leafComponentType().isRawType() &&
                           (this.bits&  IgnoreRawTypeCheck) == 0 &&
                           scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
                scope.problemReporter().rawTypeReference(this, type);
        }
        return this.resolvedType = type;
}


Clone AbstractionParameter Count: 1Parameter Bindings

public TypeBinding resolveType( [[#variable54567ae0]]) {
  // handle the error here
  this.constant = Constant.NotAConstant;
  if (this.resolvedType != null) // is a shared type reference which was already resolved
    return this.resolvedType.isValidBinding() ? this.resolvedType: null; // already reported error
  TypeBinding type = this.resolvedType = getTypeBinding(scope);
  if (this.resolvedType == null)
    return null; // detected cycle while resolving hierarchy     
  if ( !this.resolvedType.isValidBinding()) {
    reportInvalidType(scope);
    return null;
  }
  if (isTypeUseDeprecated(type, scope))
    reportDeprecatedType(scope);
  type = scope.environment().convertToRawType(type);
  if (type.leafComponentType().isRawType() && (this.bits&IgnoreRawTypeCheck) == 0 && scope.compilerOptions().getSeverity(CompilerOptions.RawTypeReference) != ProblemSeverities.Ignore) {
    scope.problemReporter().rawTypeReference(this, type);
  }
  return this.resolvedType = type;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#54567ae0]]
BlockScope scope, boolean checkBounds 
12[[#54567ae0]]
ClassScope scope