CloneSet1662


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
9220.994executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111428
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FieldReference.java
29218
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/MessageSend.java
Clone Instance
1
Line Count
11
Source Line
428
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FieldReference.java

                                                                             {
                CompilerOptions options = currentScope.compilerOptions();
                if ((options.targetJDK >= ClassFileConstants.JDK1_2 &&
                                   (options.complianceLevel >= ClassFileConstants.JDK1_4 || !(receiver.isImplicitThis() && this.codegenBinding.isStatic())) &&
                                   this.binding.declaringClass.id != T_JavaLangObject) // no change for Object fields
                    ||     !this.binding.declaringClass.canBeSeenBy(currentScope)) {

                        this.codegenBinding =
                                currentScope.enclosingSourceType().getUpdatedFieldBinding(
                                        this.codegenBinding, 
                                        (ReferenceBinding) this.receiverType.erasure()   );
                }
                                                                             }


Clone Instance
2
Line Count
9
Source Line
218
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/MessageSend.java

                                                                   {
                CompilerOptions options = currentScope.compilerOptions();
                if ((options.targetJDK >= ClassFileConstants.JDK1_2 &&
                                   (options.complianceLevel >= ClassFileConstants.JDK1_4 || !(receiver.isImplicitThis() && this.codegenBinding.isStatic())) &&
                                   this.binding.declaringClass.id != T_JavaLangObject) // no change for Object methods
                    ||     !this.binding.declaringClass.canBeSeenBy(currentScope)) {

                        this.codegenBinding = currentScope.enclosingSourceType().getUpdatedMethodBinding(
                                                                                                                this.codegenBinding, (ReferenceBinding) this.actualReceiverType.erasure());
                }
                // Post 1.4.0 target, array clone() invocations are qualified with array type 
                // This is handled in array type #clone method binding resolution (see Scope and UpdatedMethodBinding)
                                                                   }


Clone AbstractionParameter Count: 2Parameter Bindings

{
  CompilerOptions options = currentScope.compilerOptions();
  if ((options.targetJDK >= ClassFileConstants.JDK1_2 && (options.complianceLevel >= ClassFileConstants.JDK1_4 || !(receiver.isImplicitThis() && this.codegenBinding.isStatic())) && this.binding.declaringClass.id != T_JavaLangObject) // no change for Object methods // no change for Object fields
      || !this.binding.declaringClass.canBeSeenBy(currentScope)) {
    this.codegenBinding = currentScope.enclosingSourceType(). [[#variable5936b6e0]](this.codegenBinding, (ReferenceBinding) this. [[#variable5936b680]].erasure());
  }
// Post 1.4.0 target, array clone() invocations are qualified with array type 
// This is handled in array type #clone method binding resolution (see Scope and UpdatedMethodBinding)
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5936b6e0]]
getUpdatedMethodBinding 
12[[#5936b6e0]]
getUpdatedFieldBinding 
21[[#5936b680]]
actualReceiverType 
22[[#5936b680]]
receiverType