Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 1 | 0.985 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1467 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java |
2 | 12 | 1480 | 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 } |
| ||||
{ 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 } |
| |||
{ 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#bd757660]] | fieldAccessors |
1 | 2 | [[#bd757660]] | methodAccessors |