CloneSet1916


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14210.993statement_sequence[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1151589
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
2141611
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java
Clone Instance
1
Line Count
15
Source Line
1589
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/BinaryExpression.java

                        if ((cst = this.left.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                if (cst.booleanValue() == false) { // left is equivalent to false
                                        this.optimizedBooleanConstant = cst; // constant(false)
                                        return;
                                }
                                else   { //left is equivalent to true
                                        if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                                this.optimizedBooleanConstant = cst;
                                                // the conditional result is equivalent to the right conditional value
                                        }
                                        return;
                                }
                        }
                        if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                if (cst.booleanValue() == false) { // right is equivalent to false
                                        this.optimizedBooleanConstant = cst; // constant(false)
                                }
                        }


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

                        if ((cst = this.left.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                if (cst.booleanValue() == true) { // left is equivalent to true
                                        this.optimizedBooleanConstant = cst; // constant(true)
                                        return;
                                }
                                else   { //left is equivalent to false
                                        if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                                this.optimizedBooleanConstant = cst;
                                        }
                                        return;
                                }
                        }
                        if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
                                if (cst.booleanValue() == true) { // right is equivalent to true
                                        this.optimizedBooleanConstant = cst; // constant(true)
                                }
                        }


Clone AbstractionParameter Count: 1Parameter Bindings

if ((cst = this.left.optimizedBooleanConstant()) != Constant.NotAConstant) {
  if (cst.booleanValue() == [[#variable53d2f160]]) { // left is equivalent to true // left is equivalent to false
    this.optimizedBooleanConstant = cst; // constant(true) // constant(false)
    return;
  }
  else { //left is equivalent to false //left is equivalent to true
    if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
      this.optimizedBooleanConstant = cst;
    // the conditional result is equivalent to the right conditional value
    }
    return;
  }
}
if ((cst = this.right.optimizedBooleanConstant()) != Constant.NotAConstant) {
  if (cst.booleanValue() == [[#variable53d2f160]]) { // right is equivalent to true // right is equivalent to false
    this.optimizedBooleanConstant = cst; // constant(true) // constant(false)
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#53d2f160]]
true 
12[[#53d2f160]]
false