CloneSet148


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
7230.953executable_statement
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1795
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/BSHBinaryExpression.java
27107
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/BSHBinaryExpression.java
Next
Last
Clone Instance
1
Line Count
7
Source Line
95
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/BSHBinaryExpression.java

// The following two boolean checks were tacked on.
// This could probably be smoothed out.
/*
        Look ahead and short circuit evaluation of the rhs if:
                we're a boolean AND and the lhs is false.
*/
if (kind == BOOL_AND || kind == BOOL_ANDX) {
  Object obj = lhs;
  if (isPrimitiveValue(lhs))
    obj = ((Primitive) lhs).getValue();
  if (obj instanceof Boolean && (((Boolean) obj).booleanValue() == false))
    return new Primitive(false);
}


First
Previous
Clone Instance
2
Line Count
7
Source Line
107
Source File
E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/BSHBinaryExpression.java

/*
        Look ahead and short circuit evaluation of the rhs if:
                we're a boolean AND and the lhs is false.
*/
if (kind == BOOL_OR || kind == BOOL_ORX) {
  Object obj = lhs;
  if (isPrimitiveValue(lhs))
    obj = ((Primitive) lhs).getValue();
  if (obj instanceof Boolean && (((Boolean) obj).booleanValue() == true))
    return new Primitive(true);
}


Clone AbstractionParameter Count: 3Parameter Bindings

// The following two boolean checks were tacked on.
// This could probably be smoothed out.
/*
                        Look ahead and short circuit evaluation of the rhs if:
                                we're a boolean AND and the lhs is false.
                */
if (kind == [[#variableaee62c0]]|| kind == [[#variableaee6300]]) {
  Object obj = lhs;
  if (isPrimitiveValue(lhs))
    obj = ((Primitive) lhs).getValue();
  if (obj instanceof Boolean && (((Boolean) obj).booleanValue() == [[#variableaee62e0]]))
    return new Primitive( [[#variableaee62e0]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#aee62c0]]
BOOL_AND 
12[[#aee62c0]]
BOOL_OR 
21[[#aee6300]]
BOOL_ANDX 
22[[#aee6300]]
BOOL_ORX 
31[[#aee62e0]]
false 
32[[#aee62e0]]
true