Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
7 | 2 | 3 | 0.953 | executable_statement |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 7 | 95 | E:/TSE/Projects-CloneDR/jEdit-4.2/src/bsh/BSHBinaryExpression.java |
2 | 7 | 107 | 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); } |
| |||||
/* 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); } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#aee62c0]] | BOOL_AND |
1 | 2 | [[#aee62c0]] | BOOL_OR |
2 | 1 | [[#aee6300]] | BOOL_ANDX |
2 | 2 | [[#aee6300]] | BOOL_ORX |
3 | 1 | [[#aee62e0]] | false |
3 | 2 | [[#aee62e0]] | true |