Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 2 | 3 | 0.985 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 49 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/RightShiftOperator.java |
2 | 12 | 67 | plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/RightShiftOperator.java |
| ||||
/* * @see BinaryOperator#getIntResult(IJavaValue, IJavaValue) */ protected int getIntResult(IJavaValue leftOperand, IJavaValue rightOperand) { // unary type promotion on both operands see 5.6.1 and 15.18 switch (fRightTypeId) { case T_long: return ((IJavaPrimitiveValue) leftOperand).getIntValue() >> ((IJavaPrimitiveValue) rightOperand).getLongValue(); case T_int: case T_short: case T_byte: case T_char: return ((IJavaPrimitiveValue) leftOperand).getIntValue() >> ((IJavaPrimitiveValue) rightOperand).getIntValue(); default: return 0; } } |
| ||||
/* * @see BinaryOperator#getLongResult(IJavaValue, IJavaValue) */ protected long getLongResult(IJavaValue leftOperand, IJavaValue rightOperand) { // unary type promotion on both operands see 5.6.1 and 15.18 switch (fRightTypeId) { case T_long: return ((IJavaPrimitiveValue) leftOperand).getLongValue() >> ((IJavaPrimitiveValue) rightOperand).getLongValue(); case T_int: case T_short: case T_byte: case T_char: return ((IJavaPrimitiveValue) leftOperand).getLongValue() >> ((IJavaPrimitiveValue) rightOperand).getIntValue(); default: return 0; } } |
| |||
/* * @see BinaryOperator#getIntResult(IJavaValue, IJavaValue) */ /* * @see BinaryOperator#getLongResult(IJavaValue, IJavaValue) */ protected [[#variablea48a27e0]] [[#variablea48a2760]](IJavaValue leftOperand, IJavaValue rightOperand) { // unary type promotion on both operands see 5.6.1 and 15.18 switch (fRightTypeId) { case T_long: return ((IJavaPrimitiveValue) leftOperand). [[#variablea48a2700]]() >> ((IJavaPrimitiveValue) rightOperand).getLongValue(); case T_int: case T_short: case T_byte: case T_char: return ((IJavaPrimitiveValue) leftOperand). [[#variablea48a2700]]() >> ((IJavaPrimitiveValue) rightOperand).getIntValue(); default: return 0; } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#a48a27e0]] | int |
1 | 2 | [[#a48a27e0]] | long |
2 | 1 | [[#a48a2760]] | getIntResult |
2 | 2 | [[#a48a2760]] | getLongResult |
3 | 1 | [[#a48a2700]] | getIntValue |
3 | 2 | [[#a48a2700]] | getLongValue |