CloneSet7098


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.990statement_sequence[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18266
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForStatement.java
28212
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/WhileStatement.java
Clone Instance
1
Line Count
8
Source Line
266
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ForStatement.java

                        // Required to fix 1PR0XVS: LFRE:WINNT - Compiler: variable table for method appears incorrect
                        if (condIfTrueInitStateIndex != -1) {
                                // insert all locals initialized inside the condition into the action generated prior to the condition
                                codeStream.addDefinitelyAssignedVariables(
                                        currentScope, 
                                        condIfTrueInitStateIndex         );
                        }
                        actionLabel.place();
                        action.generateCode(scope, codeStream);


Clone Instance
2
Line Count
8
Source Line
212
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/WhileStatement.java

                        // Required to fix 1PR0XVS: LFRE:WINNT - Compiler: variable table for method appears incorrect
                        if (condIfTrueInitStateIndex != -1) {
                                // insert all locals initialized inside the condition into the action generated prior to the condition
                                codeStream.addDefinitelyAssignedVariables(
                                        currentScope, 
                                        condIfTrueInitStateIndex         );
                        }
                        actionLabel.place();
                        action.generateCode(currentScope, codeStream);


Clone AbstractionParameter Count: 1Parameter Bindings

// Required to fix 1PR0XVS: LFRE:WINNT - Compiler: variable table for method appears incorrect
if (condIfTrueInitStateIndex != -1) {
  // insert all locals initialized inside the condition into the action generated prior to the condition
  codeStream.addDefinitelyAssignedVariables(currentScope, condIfTrueInitStateIndex);
}
actionLabel.place();
action.generateCode( [[#variable560c05c0]], codeStream);
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#560c05c0]]
currentScope 
12[[#560c05c0]]
scope