CloneSet1183


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17320.958executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117176
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java
217292
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java
317222
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetScope.java
Clone Instance
1
Line Count
17
Source Line
176
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/MethodBinding.java

                         {
                // answer true if the invocationType and the declaringClass have a common enclosingType
                // already know they are not the identical type
                ReferenceBinding outerInvocationType = invocationType;
                ReferenceBinding temp = outerInvocationType.enclosingType();
                while (temp != null) {
                        outerInvocationType = temp;
                        temp = temp.enclosingType();
                }

                ReferenceBinding outerDeclaringClass = (ReferenceBinding) declaringClass.erasure();
                temp = outerDeclaringClass.enclosingType();
                while (temp != null) {
                        outerDeclaringClass = temp;
                        temp = temp.enclosingType();
                }
                return outerInvocationType == outerDeclaringClass;
                         }


Clone Instance
2
Line Count
17
Source Line
292
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ReferenceBinding.java

                         {
                // answer true if the receiver and the invocationType have a common enclosingType
                // already know they are not the identical type
                ReferenceBinding outerInvocationType = invocationType;
                ReferenceBinding temp = outerInvocationType.enclosingType();
                while (temp != null) {
                        outerInvocationType = temp;
                        temp = temp.enclosingType();
                }

                ReferenceBinding outerDeclaringClass = (ReferenceBinding) this.erasure();
                temp = outerDeclaringClass.enclosingType();
                while (temp != null) {
                        outerDeclaringClass = temp;
                        temp = temp.enclosingType();
                }
                return outerInvocationType == outerDeclaringClass;
                         }


Clone Instance
3
Line Count
17
Source Line
222
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetScope.java

                                          {
                // answer true if the receiver and the receiverType have a common enclosingType
                // already know they are not the identical type
                ReferenceBinding outerInvocationType = receiverType;
                ReferenceBinding temp = outerInvocationType.enclosingType();
                while (temp != null) {
                        outerInvocationType = temp;
                        temp = temp.enclosingType();
                }

                ReferenceBinding outerDeclaringClass = referenceBinding;
                temp = outerDeclaringClass.enclosingType();
                while (temp != null) {
                        outerDeclaringClass = temp;
                        temp = temp.enclosingType();
                }
                return outerInvocationType == outerDeclaringClass;
                                          }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  // answer true if the receiver and the receiverType have a common enclosingType
  // answer true if the receiver and the invocationType have a common enclosingType
  // answer true if the invocationType and the declaringClass have a common enclosingType
  // already know they are not the identical type
  ReferenceBinding outerInvocationType = [[#variableb973f420]];
  ReferenceBinding temp = outerInvocationType.enclosingType();
  while (temp != null) {
    outerInvocationType = temp;
    temp = temp.enclosingType();
  }
  ReferenceBinding outerDeclaringClass = [[#variableb973f3c0]];
  temp = outerDeclaringClass.enclosingType();
  while (temp != null) {
    outerDeclaringClass = temp;
    temp = temp.enclosingType();
  }
  return outerInvocationType == outerDeclaringClass;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b973f420]]
receiverType 
12[[#b973f420]]
invocationType 
13[[#b973f420]]
invocationType 
21[[#b973f3c0]]
referenceBinding 
22[[#b973f3c0]]
(ReferenceBinding) this.erasure() 
23[[#b973f3c0]]
(ReferenceBinding) declaringClass.erasure()