CloneSet1641


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.958executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
112121
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java
212136
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java
Clone Instance
1
Line Count
12
Source Line
121
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java

                                                                    {
                        TypeBinding superType = this.superclass;
                        if (superType != argumentType) { // check identity before substituting (104649)
                                TypeBinding substitutedSuperType = hasSubstitution ? Scope.substitute(substitution, superType):  superType;
                                if ( !argumentType.isCompatibleWith(substitutedSuperType)) {
                                    return TypeConstants.MISMATCH;
                                }
                                TypeBinding match = argumentType.findSuperTypeWithSameErasure(substitutedSuperType);
                                if (match != null) {
                                        // Enum#RAW is not a substitute for <E extends Enum<E>> (86838)
                                        if (match.isRawType() && substitutedSuperType.isBoundParameterizedType())
                                                unchecked = true;
                                }
                        }
                                                                    }


Clone Instance
2
Line Count
12
Source Line
136
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/TypeVariableBinding.java

                                                                                   {
                TypeBinding superType = this.superInterfaces[i];
                if (superType != argumentType) { // check identity before substituting (104649)
                                TypeBinding substitutedSuperType = hasSubstitution ? Scope.substitute(substitution, superType):  superType;
                                if ( !argumentType.isCompatibleWith(substitutedSuperType)) {
                                    return TypeConstants.MISMATCH;
                                }
                                TypeBinding match = argumentType.findSuperTypeWithSameErasure(substitutedSuperType);
                                if (match != null) {
                                        // Enum#RAW is not a substitute for <E extends Enum<E>> (86838)
                                        if (match.isRawType() && substitutedSuperType.isBoundParameterizedType())
                                                unchecked = true;
                                }
                }
                                                                                   }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  TypeBinding superType = [[#variable5f885280]];
  if (superType != argumentType) { // check identity before substituting (104649)
    TypeBinding substitutedSuperType = hasSubstitution ? Scope.substitute(substitution, superType): superType;
    if ( !argumentType.isCompatibleWith(substitutedSuperType)) {
      return TypeConstants.MISMATCH;
    }
    TypeBinding match = argumentType.findSuperTypeWithSameErasure(substitutedSuperType);
    if (match != null) {
      // Enum#RAW is not a substitute for <E extends Enum<E>> (86838)
      if (match.isRawType() && substitutedSuperType.isBoundParameterizedType())
        unchecked = true;
    }
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5f885280]]
this.superInterfaces[i] 
12[[#5f885280]]
this.superclass