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 | 1097 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java |
2 | 16 | 1114 | 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, false); if (valueRequired) { codeStream.iconst_1(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } else { // <something equivalent to false> | x this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, valueRequired); } return; } |
| ||||
if ((condConst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) { if (condConst.booleanValue() == true) { // x | <something equivalent to true> this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, false); if (valueRequired) { codeStream.iconst_1(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } else { // x | <something equivalent to false> this.left.generateCode(currentScope, codeStream, valueRequired); this.right.generateCode(currentScope, codeStream, false); } return; } |
| |||
if ((condConst = this. [[#variable7737f320]].optimizedBooleanConstant()) != Constant.NotAConstant) { if (condConst.booleanValue() == true) { // x | <something equivalent to true> // <something equivalent to true> | x this.left.generateCode(currentScope, codeStream, false); this.right.generateCode(currentScope, codeStream, false); if (valueRequired) { codeStream.iconst_1(); } // reposition the endPC codeStream.updateLastRecordedEndPC(currentScope, codeStream.position); } else { // x | <something equivalent to false> // <something equivalent to false> | x this.left.generateCode(currentScope, codeStream, [[#variable7737f2e0]]); this.right.generateCode(currentScope, codeStream, [[#variable7737f3a0]]); } return; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7737f320]] | right |
1 | 2 | [[#7737f320]] | left |
2 | 1 | [[#7737f2e0]] | valueRequired |
2 | 2 | [[#7737f2e0]] | false |
3 | 1 | [[#7737f3a0]] | false |
3 | 2 | [[#7737f3a0]] | valueRequired |