| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 11 | 2 | 3 | 0.951 | executable_statement |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 11 | 695 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/SingleNameReference.java |
| 2 | 11 | 593 | 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(
codegenField,
(ReferenceBinding) this.actualReceiverType.erasure());
}
}
|
| ||||
{
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());
}
}
|
| |||
{
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#a4333020]] | (FieldBinding) this.codegenBinding |
| 1 | 2 | [[#a4333020]] | codegenField |
| 2 | 1 | [[#a4332fa0]] | this.delegateThis |
| 2 | 2 | [[#a4332fa0]] | this |
| 3 | 1 | [[#a4332f40]] | type |
| 3 | 2 | [[#a4332f40]] | actualReceiverType |