Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
4 | 2 | 2 | 0.986 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 4 | 346 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EqualExpression.java |
2 | 4 | 351 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/EqualExpression.java |
| ||||
// optimized cases: true == x, false == x if (left.constant != Constant.NotAConstant) { boolean inline = left.constant.booleanValue(); right.generateOptimizedBoolean(currentScope, codeStream, (inline ? trueLabel: falseLabel), (inline ? falseLabel: trueLabel), valueRequired); return; } // optimized cases: x == true, x == false |
| ||||
if (right.constant != Constant.NotAConstant) { boolean inline = right.constant.booleanValue(); left.generateOptimizedBoolean(currentScope, codeStream, (inline ? trueLabel: falseLabel), (inline ? falseLabel: trueLabel), valueRequired); return; } |
| |||
// optimized cases: true == x, false == x if ( [[#variablea3565020]].constant != Constant.NotAConstant) { boolean inline = [[#variablea3565020]].constant.booleanValue(); [[#variablea3565200]].generateOptimizedBoolean(currentScope, codeStream, (inline ? trueLabel: falseLabel), (inline ? falseLabel: trueLabel), valueRequired); return; } // optimized cases: x == true, x == false |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a3565020]] | right |
1 | 2 | [[#a3565020]] | left |
2 | 1 | [[#a3565200]] | left |
2 | 2 | [[#a3565200]] | right |