CloneSet1347


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
16230.983statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1161097
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
2161114
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
Clone Instance
1
Line Count
16
Source Line
1097
Source File
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;
                }


Clone Instance
2
Line Count
16
Source Line
1114
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

                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;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7737f320]]
right 
12[[#7737f320]]
left 
21[[#7737f2e0]]
valueRequired 
22[[#7737f2e0]]
false 
31[[#7737f3a0]]
false 
32[[#7737f3a0]]
valueRequired