CloneSet906


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12210.985executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121467
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java
2121480
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java
Clone Instance
1
Line Count
12
Source Line
1467
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java

                                                            {

                        SyntheticMethodBinding[] methodAccessors = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(fieldOrMethod);
                        int numberOfAccessors = 0;
                        if (methodAccessors[0] != null) numberOfAccessors++;
                        if (methodAccessors[1] != null) numberOfAccessors++;
                        if (index + numberOfAccessors > bindings.length)
                                System.arraycopy(bindings, 0, (bindings = new SyntheticMethodBinding[index + numberOfAccessors]), 0, index);
                        if (methodAccessors[0] != null)
                                bindings[index++ ] = methodAccessors[0]; // super access 
                        if (methodAccessors[1] != null)
                                bindings[index++ ] = methodAccessors[1]; // normal access or bridge
                                                            }


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

                       {

                        SyntheticMethodBinding[] fieldAccessors = (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(fieldOrMethod);
                        int numberOfAccessors = 0;
                        if (fieldAccessors[0] != null) numberOfAccessors++;
                        if (fieldAccessors[1] != null) numberOfAccessors++;
                        if (index + numberOfAccessors > bindings.length)
                                System.arraycopy(bindings, 0, (bindings = new SyntheticMethodBinding[index + numberOfAccessors]), 0, index);
                        if (fieldAccessors[0] != null)
                                bindings[index++ ] = fieldAccessors[0]; // read access
                        if (fieldAccessors[1] != null)
                                bindings[index++ ] = fieldAccessors[1]; // write access
                       }


Clone AbstractionParameter Count: 1Parameter Bindings

{
  SyntheticMethodBinding[]  [[#variablebd757660]]= (SyntheticMethodBinding[]) this.synthetics[SourceTypeBinding.METHOD_EMUL].get(fieldOrMethod);
  int numberOfAccessors = 0;
  if ( [[#variablebd757660]][0] != null)
    numberOfAccessors++;
  if ( [[#variablebd757660]][1] != null)
    numberOfAccessors++;
  if (index + numberOfAccessors > bindings.length)
    System.arraycopy(bindings, 0, (bindings = new SyntheticMethodBinding[index + numberOfAccessors]), 0, index);
  if ( [[#variablebd757660]][0] != null)
    bindings[index++ ] = [[#variablebd757660]][0]; // read access // super access 
  if ( [[#variablebd757660]][1] != null)
    bindings[index++ ] = [[#variablebd757660]][1]; // write access // normal access or bridge
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#bd757660]]
fieldAccessors 
12[[#bd757660]]
methodAccessors