CloneSet2228


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12230.985class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11249
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnsignedRightShiftOperator.java
21267
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnsignedRightShiftOperator.java
Clone Instance
1
Line Count
12
Source Line
49
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnsignedRightShiftOperator.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;
                      }
        }


Clone Instance
2
Line Count
12
Source Line
67
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/UnsignedRightShiftOperator.java

        /*
         * @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;
                      }
        }


Clone AbstractionParameter Count: 3Parameter Bindings

/*
         * @see BinaryOperator#getIntResult(IJavaValue, IJavaValue)
         */
/*
         * @see BinaryOperator#getLongResult(IJavaValue, IJavaValue)
         */
protected [[#variableb898b880]]  [[#variableb898af40]](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). [[#variableb898b8c0]]() >>> ((IJavaPrimitiveValue) rightOperand).getLongValue();
    case T_int:
    case T_short:
    case T_byte:
    case T_char:
      return ((IJavaPrimitiveValue) leftOperand). [[#variableb898b8c0]]() >>> ((IJavaPrimitiveValue) rightOperand).getIntValue();
    default:
      return 0;
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b898b880]]
int 
12[[#b898b880]]
long 
21[[#b898af40]]
getIntResult 
22[[#b898af40]]
getLongResult 
31[[#b898b8c0]]
getIntValue 
32[[#b898b8c0]]
getLongValue