CloneSet723


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19260.952statement_sequence[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119142
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java
220186
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java
Clone Instance
1
Line Count
19
Source Line
142
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java

        if (this.synthetics == null)
                this.synthetics = new HashMap[4];
        if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)
                this.synthetics[SourceTypeBinding.FIELD_EMUL] = new HashMap(5);

        FieldBinding synthField = (FieldBinding) this.synthetics[SourceTypeBinding.FIELD_EMUL].get(actualOuterLocalVariable);
        if (synthField == null) {
                synthField = new SyntheticFieldBinding(
                        CharOperation.concat(TypeConstants.SYNTHETIC_OUTER_LOCAL_PREFIX, actualOuterLocalVariable.name), 
                        actualOuterLocalVariable.type, 
                        ClassFileConstants.AccPrivate|  ClassFileConstants.AccFinal|  ClassFileConstants.AccSynthetic, 
                        this, 
                        Constant.NotAConstant, 
                        this.synthetics[SourceTypeBinding.FIELD_EMUL].size());
                this.synthetics[SourceTypeBinding.FIELD_EMUL].put(actualOuterLocalVariable, synthField);
        }

        // ensure there is not already such a field defined by the user
        boolean needRecheck;


Clone Instance
2
Line Count
20
Source Line
186
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java

        if (this.synthetics == null)
                this.synthetics = new HashMap[4];
        if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)
                this.synthetics[SourceTypeBinding.FIELD_EMUL] = new HashMap(5);

        FieldBinding synthField = (FieldBinding) this.synthetics[SourceTypeBinding.FIELD_EMUL].get(enclosingType);
        if (synthField == null) {
                synthField = new SyntheticFieldBinding(
                        CharOperation.concat(
                                TypeConstants.SYNTHETIC_ENCLOSING_INSTANCE_PREFIX, 
                                String.valueOf(enclosingType.depth()).toCharArray()), 
                        enclosingType, 
                        ClassFileConstants.AccDefault|  ClassFileConstants.AccFinal|  ClassFileConstants.AccSynthetic, 
                        this, 
                        Constant.NotAConstant, 
                        this.synthetics[SourceTypeBinding.FIELD_EMUL].size());
                this.synthetics[SourceTypeBinding.FIELD_EMUL].put(enclosingType, synthField);
        }
        // ensure there is not already such a field defined by the user
        boolean needRecheck;


Clone AbstractionParameter Count: 6Parameter Bindings

if (this.synthetics == null)
  this.synthetics = new HashMap[4];
if (this.synthetics[SourceTypeBinding.FIELD_EMUL] == null)
  this.synthetics[SourceTypeBinding.FIELD_EMUL] = new HashMap(5);
FieldBinding synthField = (FieldBinding) this.synthetics[SourceTypeBinding.FIELD_EMUL].get( [[#variablebb5f26c0]]);
if (synthField == null) {
  synthField = new SyntheticFieldBinding(CharOperation.concat(TypeConstants. [[#variablebb5f2620]],  [[#variablebb5f2520]] [[#variablebb5f2580]]),  [[#variablebb5f2560]], ClassFileConstants. [[#variablebb5f24e0]]|ClassFileConstants.AccFinal|ClassFileConstants.AccSynthetic, this, Constant.NotAConstant, this.synthetics[SourceTypeBinding.FIELD_EMUL].size());
  this.synthetics[SourceTypeBinding.FIELD_EMUL].put( [[#variablebb5f26c0]], synthField);
}
// ensure there is not already such a field defined by the user
boolean needRecheck;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bb5f26c0]]
actualOuterLocalVariable 
12[[#bb5f26c0]]
enclosingType 
21[[#bb5f2620]]
SYNTHETIC_OUTER_LOCAL_PREFIX 
22[[#bb5f2620]]
SYNTHETIC_ENCLOSING_INSTANCE_PREFIX 
31[[#bb5f2520]]
actualOuterLocalVariable 
32[[#bb5f2520]]
String.valueOf(enclosingType.depth()) 
41[[#bb5f2580]]
.name 
42[[#bb5f2580]]
.toCharArray() 
51[[#bb5f2560]]
actualOuterLocalVariable.type 
52[[#bb5f2560]]
enclosingType 
61[[#bb5f24e0]]
AccPrivate 
62[[#bb5f24e0]]
AccDefault