case MINUSASSIGN:
return lhs.assign(
operation(lhsValue, rhs, MINUS), strictJava );
case STARASSIGN:
return lhs.assign(
operation(lhsValue, rhs, STAR), strictJava );
case SLASHASSIGN:
return lhs.assign(
operation(lhsValue, rhs, SLASH), strictJava );
case ANDASSIGN:
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:
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:↵
|
| | | 2 | return lhs.assign( ↵
|
| | | 3 | operation(lhsValue, rhs, PLUS), strictJava );↵
|
|
1 | case MINUSASSIGN:↵ | | 4 | case MINUSASSIGN:↵
|
2 | return lhs.assign( ↵ | | 5 | return lhs.assign( ↵
|
3 | operation(lhsValue, rhs, MINUS), strictJava );↵ | | 6 | operation(lhsValue, rhs, MINUS), strictJava );↵
|
|
4 | case STARASSIGN:↵ | | 7 | case STARASSIGN:↵
|
5 | return lhs.assign( ↵ | | 8 | return lhs.assign( ↵
|
6 | operation(lhsValue, rhs, STAR), strictJava );↵ | | 9 | operation(lhsValue, rhs, STAR), strictJava );↵
|
|
7 | case SLASHASSIGN:↵ | | 10 | case SLASHASSIGN:
|
8 | return lhs.assign( ↵ | | | |
9 | operation(lhsValue, rhs, SLASH), strictJava );↵ | | | |
|
10 | case ANDASSIGN: | | | |
See real code fragment |
|
See real code fragment |
Summary
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 1 |
Number of non-refactorable cases | 0 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.0 |
Clones location | Clones are in the same method |
Number of node comparisons | 31 |
-
{Refactorable}
Mapping Summary
Number of mapped statements | 7 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 0.0 |
Clone type | Type 2 |
Mapped Statements
ID |
Statement |
|
ID |
Statement |
23 | case MINUSASSIGN: | | 23 | case MINUSASSIGN: |
24 | return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava); | | 24 | return lhs.assign(operation(lhsValue, rhs, MINUS), strictJava); |
25 | case STARASSIGN: | | 25 | case STARASSIGN: |
26 | return lhs.assign(operation(lhsValue, rhs, STAR), strictJava); | | 26 | return lhs.assign(operation(lhsValue, rhs, STAR), strictJava); |
27 | case SLASHASSIGN: | | 21 | case PLUSASSIGN: |
28 | return lhs.assign(operation(lhsValue, rhs, SLASH), strictJava); | | 22 | return lhs.assign(operation(lhsValue, rhs, PLUS), strictJava); |
29 | case ANDASSIGN: | | 27 | case SLASHASSIGN: |
Precondition Violations (0)
Row |
Violation |