CloneSet3650


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
18201.000class_body_declarations[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11832
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnParameterizedQualifiedTypeReference.java
2824
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnParameterizedSingleTypeReference.java
Clone Instance
1
Line Count
18
Source Line
32
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnParameterizedQualifiedTypeReference.java

        public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
                super.resolveType(scope, checkBounds);
                //// removed unnecessary code to solve bug 94653
                //if(this.resolvedType != null && this.resolvedType.isRawType()) {
                //      ParameterizedTypeBinding parameterizedTypeBinding = scope.createParameterizedType(((RawTypeBinding)this.resolvedType).type, new TypeBinding[0], this.resolvedType.enclosingType());
                //      throw new SelectionNodeFound(parameterizedTypeBinding);
                //}
                throw new SelectionNodeFound(this.resolvedType);
        }

        public TypeBinding resolveType(ClassScope scope) {
                super.resolveType(scope);
                //// removed unnecessary code to solve bug 94653
                //if(this.resolvedType != null && this.resolvedType.isRawType()) {
                //      ParameterizedTypeBinding parameterizedTypeBinding = scope.createParameterizedType(((RawTypeBinding)this.resolvedType).type, new TypeBinding[0], this.resolvedType.enclosingType());
                //      throw new SelectionNodeFound(parameterizedTypeBinding);
                //}
                throw new SelectionNodeFound(this.resolvedType);
        }


Clone Instance
2
Line Count
8
Source Line
24
Source File
plugins/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/select/SelectionOnParameterizedSingleTypeReference.java

        public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
                super.resolveType(scope, checkBounds);
                throw new SelectionNodeFound(this.resolvedType);
        }

        public TypeBinding resolveType(ClassScope scope) {
                super.resolveType(scope);
                throw new SelectionNodeFound(this.resolvedType);
        }


Clone AbstractionParameter Count: 0Parameter Bindings

public TypeBinding resolveType(BlockScope scope, boolean checkBounds) {
  super.resolveType(scope, checkBounds);
  //// removed unnecessary code to solve bug 94653
  //if(this.resolvedType != null && this.resolvedType.isRawType()) {
  //      ParameterizedTypeBinding parameterizedTypeBinding = scope.createParameterizedType(((RawTypeBinding)this.resolvedType).type, new TypeBinding[0], this.resolvedType.enclosingType());
  //      throw new SelectionNodeFound(parameterizedTypeBinding);
  //}
  throw new SelectionNodeFound(this.resolvedType);
}

public TypeBinding resolveType(ClassScope scope) {
  super.resolveType(scope);
  //// removed unnecessary code to solve bug 94653
  //if(this.resolvedType != null && this.resolvedType.isRawType()) {
  //      ParameterizedTypeBinding parameterizedTypeBinding = scope.createParameterizedType(((RawTypeBinding)this.resolvedType).type, new TypeBinding[0], this.resolvedType.enclosingType());
  //      throw new SelectionNodeFound(parameterizedTypeBinding);
  //}
  throw new SelectionNodeFound(this.resolvedType);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None