CloneSet2284


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
5230.955executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1585
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java
25112
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java
Clone Instance
1
Line Count
5
Source Line
85
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java

                               if (abstractMethod.hasSubstitutedReturnType() && originalInherited.returnType.leafComponentType().isTypeVariable()) {
                                if (((TypeVariableBinding) originalInherited.returnType.leafComponentType()).declaringElement == originalInherited) { // see 81618 - type variable from inherited method
                                        TypeBinding currentReturnType = concreteMethod.returnType.leafComponentType();
                                        if ( !currentReturnType.isTypeVariable() || ((TypeVariableBinding) currentReturnType).declaringElement != concreteMethod)
                                                problemReporter().unsafeReturnTypeOverride(concreteMethod, originalInherited, this.type);
                                }
                               }


Clone Instance
2
Line Count
5
Source Line
112
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodVerifier15.java

                       if (inheritedMethod.hasSubstitutedReturnType() && originalInherited.returnType.leafComponentType().isTypeVariable()) {
                        if (((TypeVariableBinding) originalInherited.returnType.leafComponentType()).declaringElement == originalInherited) { // see 81618 - type variable from inherited method
                                TypeBinding currentReturnType = currentMethod.returnType.leafComponentType();
                                if ( !currentReturnType.isTypeVariable() || ((TypeVariableBinding) currentReturnType).declaringElement != currentMethod)
                                        problemReporter(currentMethod).unsafeReturnTypeOverride(currentMethod, originalInherited, this.type);
                        }
                       }


Clone AbstractionParameter Count: 3Parameter Bindings

if ( [[#variable56338480]].hasSubstitutedReturnType() && originalInherited.returnType.leafComponentType().isTypeVariable()) {
  if (((TypeVariableBinding) originalInherited.returnType.leafComponentType()).declaringElement == originalInherited) { // see 81618 - type variable from inherited method
    TypeBinding currentReturnType = [[#variable56338400]].returnType.leafComponentType();
    if ( !currentReturnType.isTypeVariable() || ((TypeVariableBinding) currentReturnType).declaringElement != [[#variable56338400]])
      problemReporter [[#variable56338380]].unsafeReturnTypeOverride( [[#variable56338400]], originalInherited, this.type);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#56338480]]
abstractMethod 
12[[#56338480]]
inheritedMethod 
21[[#56338400]]
concreteMethod 
22[[#56338400]]
currentMethod 
31[[#56338380]]
() 
32[[#56338380]]
(currentMethod)