Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 3 | 0.983 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 1046 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
2 | 16 | 1063 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
| ||||
if ((condConst = this.left.optimizedBooleanConstant()) != Constant.NotAConstant) { if (condConst.booleanValue() == true) { // <something equivalent to true> & x this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, valueRequired); } else { // <something equivalent to false> & x this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, false); if (valueRequired) { codeStream.iconst_0(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } return; } |
| ||||
if ((condConst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) { if (condConst.booleanValue() == true) { // x & <something equivalent to true> this.left.generateCode(currentScope, codeStream, valueRequired); this.right.generateCode(currentScope, codeStream, false); } else { // x & <something equivalent to false> this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, false); if (valueRequired) { codeStream.iconst_0(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } return; } |
| |||
if ((condConst = this. [[#variableb2fd9720]].optimizedBooleanConstant()) != Constant.NotAConstant) { if (condConst.booleanValue() == true) { // x & <something equivalent to true> // <something equivalent to true> & x this.left.generateCode(currentScope, codeStream, [[#variableb2fd96c0]]); this.right.generateCode(currentScope, codeStream, [[#variableb2fd9640]]); } else { // x & <something equivalent to false> // <something equivalent to false> & x this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, false); if (valueRequired) { codeStream.iconst_0(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b2fd9720]] | right |
1 | 2 | [[#b2fd9720]] | left |
2 | 1 | [[#b2fd96c0]] | valueRequired |
2 | 2 | [[#b2fd96c0]] | false |
3 | 1 | [[#b2fd9640]] | false |
3 | 2 | [[#b2fd9640]] | valueRequired |