case ORASSIGNX: return lhs.assign( operation(lhsValue, rhs, BIT_OR), strictJava ); case XORASSIGN: return lhs.assign( operation(lhsValue, rhs, XOR), strictJava ); case MODASSIGN:
case PLUSASSIGN: return lhs.assign( operation(lhsValue, rhs, PLUS), strictJava ); case MINUSASSIGN: return lhs.assign( operation(lhsValue, rhs, MINUS), strictJava ); case STARASSIGN:
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 ORASSIGNX:
1
case PLUSASSIGN:
2
	                return lhs.assign( 
2
					return lhs.assign( 
3
						operation(lhsValue, rhs, BIT_OR), strictJava );
3
						operation(lhsValue, rhs, PLUS), strictJava );
4
	            case XORASSIGN:
4
	            case MINUSASSIGN:
5
	                return lhs.assign( 
5
					return lhs.assign( 
6
						operation(lhsValue, rhs, XOR), strictJava );
6
						operation(lhsValue, rhs, MINUS), strictJava );
7
	            case MODASSIGN:
7
				case STARASSIGN:
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
    33
    case ORASSIGNX:
    33
    case ORASSIGNX:
    23
    case MINUSASSIGN:
    Differences
    Expression1Expression2Difference
    ORASSIGNXMINUSASSIGNVARIABLE_NAME_MISMATCH
    23
    case MINUSASSIGN:
    34
    return lhs.assign(operation(lhsValue, rhs, BIT_OR), strictJava);
    34
    return lhs.assign(operation(lhsValue, rhs, BIT_OR), strictJava);
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    Differences
    Expression1Expression2Difference
    BIT_ORMINUSVARIABLE_NAME_MISMATCH
    24
    return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava);
    35
    case XORASSIGN:
    35
    case XORASSIGN:
    21
    case PLUSASSIGN:
    Differences
    Expression1Expression2Difference
    XORASSIGNPLUSASSIGNVARIABLE_NAME_MISMATCH
    21
    case PLUSASSIGN:
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    36
    return lhs.assign(operation(lhsValue, rhs, XOR), strictJava);
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    Differences
    Expression1Expression2Difference
    XORPLUSVARIABLE_NAME_MISMATCH
    22
    return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava);
    37
    case MODASSIGN:
    37
    case MODASSIGN:
    25
    case STARASSIGN:
    Differences
    Expression1Expression2Difference
    MODASSIGNSTARASSIGNVARIABLE_NAME_MISMATCH
    25
    case STARASSIGN:
    Precondition Violations (0)
    Row Violation