| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 19 | 2 | 6 | 0.952 | statement_sequence[5] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 19 | 142 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/SourceTypeBinding.java |
| 2 | 20 | 186 | 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;
|
| ||||
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;
|
| |||
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 Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#bb5f26c0]] | actualOuterLocalVariable |
| 1 | 2 | [[#bb5f26c0]] | enclosingType |
| 2 | 1 | [[#bb5f2620]] | SYNTHETIC_OUTER_LOCAL_PREFIX |
| 2 | 2 | [[#bb5f2620]] | SYNTHETIC_ENCLOSING_INSTANCE_PREFIX |
| 3 | 1 | [[#bb5f2520]] | actualOuterLocalVariable |
| 3 | 2 | [[#bb5f2520]] | String.valueOf(enclosingType.depth()) |
| 4 | 1 | [[#bb5f2580]] | .name |
| 4 | 2 | [[#bb5f2580]] | .toCharArray() |
| 5 | 1 | [[#bb5f2560]] | actualOuterLocalVariable.type |
| 5 | 2 | [[#bb5f2560]] | enclosingType |
| 6 | 1 | [[#bb5f24e0]] | AccPrivate |
| 6 | 2 | [[#bb5f24e0]] | AccDefault |