CloneSet1348


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
1161046
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
2161063
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
Clone Instance
1
Line Count
16
Source Line
1046
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, 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;
                }


Clone Instance
2
Line Count
16
Source Line
1063
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, 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;
                }


Clone AbstractionParameter Count: 3Parameter Bindings

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