CloneSet2045


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
11230.951executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
111695
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java
211593
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java
Clone Instance
1
Line Count
11
Source Line
695
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java

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

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


Clone Instance
2
Line Count
11
Source Line
593
Source File
plugins/org.eclipse.jdt.core/eval/org/eclipse/jdt/internal/eval/CodeSnippetSingleNameReference.java

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

                                this.codegenBinding =
                                    currentScope.enclosingSourceType().getUpdatedFieldBinding(
                                               (FieldBinding) this.codegenBinding, 
                                                (ReferenceBinding) this.delegateThis.type.erasure());
                        }
                                                                                     }


Clone AbstractionParameter Count: 3Parameter Bindings

{
  CompilerOptions options = currentScope.compilerOptions();
  if ((options.targetJDK >= ClassFileConstants.JDK1_2 && (options.complianceLevel >= ClassFileConstants.JDK1_4 || !fieldBinding.isStatic()) && fieldBinding.declaringClass.id != T_JavaLangObject) // no change for Object fields
      || !fieldBinding.declaringClass.canBeSeenBy(currentScope)) {
    this.codegenBinding = currentScope.enclosingSourceType().getUpdatedFieldBinding( [[#variablea4333020]], (ReferenceBinding)  [[#variablea4332fa0]]. [[#variablea4332f40]].erasure());
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#a4333020]]
(FieldBinding) this.codegenBinding 
12[[#a4333020]]
codegenField 
21[[#a4332fa0]]
this.delegateThis 
22[[#a4332fa0]]
this 
31[[#a4332f40]]
type 
32[[#a4332f40]]
actualReceiverType