| Previous CloneSet | Next CloneSet | Back to Main Report |
| Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
|---|---|---|---|---|
| 3 | 2 | 2 | 0.972 | statement_sequence[3] |
| Clone Abstraction | Parameter Bindings |
| Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
|---|---|---|---|
| 1 | 3 | 454 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java |
| 2 | 3 | 470 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForeachStatement.java |
| ||||
// allocate #index secret variable (of type int)
this.indexVariable = new LocalVariableBinding(SecretIndexVariableName, TypeBinding.INT, ClassFileConstants.AccDefault, false);
scope.addLocalVariable(this.indexVariable);
this.indexVariable.setConstant(Constant.NotAConstant); // not inlinable
|
| ||||
// allocate #index secret variable (of type Iterator)
this.indexVariable = new LocalVariableBinding(SecretIndexVariableName, scope.getJavaUtilIterator(), ClassFileConstants.AccDefault, false);
scope.addLocalVariable(this.indexVariable);
this.indexVariable.setConstant(Constant.NotAConstant); // not inlinable
|
| |||
// allocate #index secret variable (of type Iterator) // allocate #index secret variable (of type int) this.indexVariable = new LocalVariableBinding(SecretIndexVariableName, [[#variable95ea24c0]] [[#variable95ea2400]], ClassFileConstants.AccDefault, false); scope.addLocalVariable(this.indexVariable); this.indexVariable.setConstant(Constant.NotAConstant); // not inlinable |
| CloneAbstraction |
| Parameter Index | Clone Instance | Parameter Name | Value |
|---|---|---|---|
| 1 | 1 | [[#95ea24c0]] | scope |
| 1 | 2 | [[#95ea24c0]] | TypeBinding |
| 2 | 1 | [[#95ea2400]] | .getJavaUtilIterator() |
| 2 | 2 | [[#95ea2400]] | .INT |