case PLUSASSIGN: return lhs.assign( operation(lhsValue, rhs, PLUS), strictJava ); case MINUSASSIGN: return lhs.assign( operation(lhsValue, rhs, MINUS), strictJava ); case STARASSIGN:
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: 5 Number of AST nodes: 5
1
case PLUSASSIGN:
1
case XORASSIGN:
2
					return lhs.assign( 
2
	                return lhs.assign( 
3
						operation(lhsValue, rhs, PLUS), strictJava );
3
						operation(lhsValue, rhs, XOR), strictJava );
4
	            case MINUSASSIGN:
4
	            case MODASSIGN:
5
					return lhs.assign( 
5
	                return lhs.assign( 
6
						operation(lhsValue, rhs, MINUS), strictJava );
6
						operation(lhsValue, rhs, MOD), strictJava );
7
				case STARASSIGN:
7
	            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 comparisons17
  1. {Refactorable}
    Mapping Summary
    Number of mapped statements5
    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:
    35
    case XORASSIGN:
    Differences
    Expression1Expression2Difference
    PLUSASSIGNXORASSIGNVARIABLE_NAME_MISMATCH
    35
    case XORASSIGN:
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    Differences
    Expression1Expression2Difference
    PLUSXORVARIABLE_NAME_MISMATCH
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    23
    case MINUSASSIGN:
    23
    case MINUSASSIGN:
    37
    case MODASSIGN:
    Differences
    Expression1Expression2Difference
    MINUSASSIGNMODASSIGNVARIABLE_NAME_MISMATCH
    37
    case MODASSIGN:
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    38
    return lhs.assign(operation(lhsValue, rhs, MOD), strictJava);
    Differences
    Expression1Expression2Difference
    MINUSMODVARIABLE_NAME_MISMATCH
    38
    return lhs.assign(operation(lhsValue, rhs, MOD), strictJava);
    25
    case STARASSIGN:
    25
    case STARASSIGN:
    39
    case LSHIFTASSIGN:
    Differences
    Expression1Expression2Difference
    STARASSIGNLSHIFTASSIGNVARIABLE_NAME_MISMATCH
    39
    case LSHIFTASSIGN:
    Precondition Violations (0)
    Row Violation