case PLUSASSIGN: return lhs.assign( operation(lhsValue, rhs, PLUS), strictJava ); case MINUSASSIGN: return lhs.assign( operation(lhsValue, rhs, MINUS), strictJava ); case STARASSIGN: return lhs.assign( operation(lhsValue, rhs, STAR), strictJava ); case SLASHASSIGN:
case ORASSIGNX: return lhs.assign( operation(lhsValue, rhs, BIT_OR), strictJava ); case XORASSIGN: return lhs.assign( operation(lhsValue, rhs, XOR), strictJava ); case MODASSIGN: return lhs.assign( operation(lhsValue, rhs, MOD), strictJava ); case LSHIFTASSIGN:
Clone fragments detected by clone detection tool
File path: /jEdit-4.2/src/bsh/BSHAssignment.java File path: /jEdit-4.2/src/bsh/BSHAssignment.java
Method name: Object eval(CallStack, Interpreter) Method name: Object eval(CallStack, Interpreter)
Number of AST nodes: 7 Number of AST nodes: 7
1
case PLUSASSIGN:
1
case ORASSIGNX:
2
					return lhs.assign( 
2
	                return lhs.assign( 
3
						operation(lhsValue, rhs, PLUS), strictJava );
3
						operation(lhsValue, rhs, BIT_OR), strictJava );
4
	            case MINUSASSIGN:
4
	            case XORASSIGN:
5
					return lhs.assign( 
5
	                return lhs.assign( 
6
						operation(lhsValue, rhs, MINUS), strictJava );
6
						operation(lhsValue, rhs, XOR), strictJava );
7
				case STARASSIGN:
7
	            case MODASSIGN:
8
					return lhs.assign( 
8
	                return lhs.assign( 
9
						operation(lhsValue, rhs, STAR), strictJava );
9
						operation(lhsValue, rhs, MOD), strictJava );
10
	            case SLASHASSIGN:
10
	            case LSHIFTASSIGN:
Summary
Number of common nesting structure subtrees1
Number of refactorable cases1
Number of non-refactorable cases0
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in the same method
Number of node comparisons31
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements7
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    21
    case PLUSASSIGN:
    21
    case PLUSASSIGN:
    33
    case ORASSIGNX:
    Differences
    Expression1Expression2Difference
    PLUSASSIGNORASSIGNXVARIABLE_NAME_MISMATCH
    33
    case ORASSIGNX:
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    34
    return lhs.assign(operation(lhsValue, rhs, BIT_OR), strictJava);
    Differences
    Expression1Expression2Difference
    PLUSBIT_ORVARIABLE_NAME_MISMATCH
    34
    return lhs.assign(operation(lhsValue, rhs, BIT_OR), strictJava);
    23
    case MINUSASSIGN:
    23
    case MINUSASSIGN:
    35
    case XORASSIGN:
    Differences
    Expression1Expression2Difference
    MINUSASSIGNXORASSIGNVARIABLE_NAME_MISMATCH
    35
    case XORASSIGN:
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    Differences
    Expression1Expression2Difference
    MINUSXORVARIABLE_NAME_MISMATCH
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    25
    case STARASSIGN:
    25
    case STARASSIGN:
    37
    case MODASSIGN:
    Differences
    Expression1Expression2Difference
    STARASSIGNMODASSIGNVARIABLE_NAME_MISMATCH
    37
    case MODASSIGN:
    26
    return lhs.assign(operation(lhsValue, rhs, STAR), strictJava);
    26
    return lhs.assign(operation(lhsValue, rhs, STAR), strictJava);
    38
    return lhs.assign(operation(lhsValue, rhs, MOD), strictJava);
    Differences
    Expression1Expression2Difference
    STARMODVARIABLE_NAME_MISMATCH
    38
    return lhs.assign(operation(lhsValue, rhs, MOD), strictJava);
    27
    case SLASHASSIGN:
    27
    case SLASHASSIGN:
    39
    case LSHIFTASSIGN:
    Differences
    Expression1Expression2Difference
    SLASHASSIGNLSHIFTASSIGNVARIABLE_NAME_MISMATCH
    39
    case LSHIFTASSIGN:
    Precondition Violations (0)
    Row Violation