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 RSIGNEDSHIFTASSIGNX:↵ | 1 | case LSHIFTASSIGNX:↵ | |
2 | return lhs.assign( ↵ | 2 | return lhs.assign( ↵ | |
3 | operation(lhsValue, rhs, RSIGNEDSHIFT ), strictJava );↵ | 3 | operation(lhsValue, rhs, LSHIFT), strictJava );↵ | |
4 | case RUNSIGNEDSHIFTASSIGN:↵ | 4 | case RSIGNEDSHIFTASSIGN:↵ | |
5 | case RUNSIGNEDSHIFTASSIGNX:↵ | 5 | case RSIGNEDSHIFTASSIGNX:↵ | |
6 | return lhs.assign( ↵ | 6 | return lhs.assign( ↵ | |
7 | operation(lhsValue, rhs, RUNSIGNEDSHIFT), ↵ | 7 | operation(lhsValue, rhs, RSIGNEDSHIFT ), ↵ | |
8 | strictJava ); | 8 |
| |
See real code fragment | See real code fragment |
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 | 17 |
Number of mapped statements | 5 |
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 |
ID | Statement | ID | Statement | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
43 | case RSIGNEDSHIFTASSIGNX: | 43 | case RSIGNEDSHIFTASSIGNX: | |||||||||||
44 | return lhs.assign(operation(lhsValue, rhs, RSIGNEDSHIFT), strictJava); | 44 | return lhs.assign(operation(lhsValue, rhs, RSIGNEDSHIFT), strictJava); | |||||||||||
45 | case RUNSIGNEDSHIFTASSIGN: |
| 42 | case RSIGNEDSHIFTASSIGN: | ||||||||||
46 | case RUNSIGNEDSHIFTASSIGNX: |
| 40 | case LSHIFTASSIGNX: | ||||||||||
47 | return lhs.assign(operation(lhsValue, rhs, RUNSIGNEDSHIFT), strictJava); |
| 41 | return lhs.assign(operation(lhsValue, rhs, LSHIFT), strictJava); |
Row | Violation |
---|