CloneSet228


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
81220.997class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1812632
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
2812734
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java
Clone Instance
1
Line Count
81
Source Line
2632
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java

public void generateUnboxingConversion(int unboxedTypeID) {
        switch (unboxedTypeID) {
                case TypeIds.T_byte:
                        // invokevirtual: byteValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangByteConstantPoolName, 
                                        ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, 
                                        ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_short:
                        // invokevirtual: shortValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangShortConstantPoolName, 
                                        ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, 
                                        ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_char:
                        // invokevirtual: charValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangCharacterConstantPoolName, 
                                        ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, 
                                        ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_int:
                        // invokevirtual: intValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangIntegerConstantPoolName, 
                                        ConstantPool.INTVALUE_INTEGER_METHOD_NAME, 
                                        ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_long:
                        // invokevirtual: longValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         2, // return type size
                                         ConstantPool.JavaLangLongConstantPoolName, 
                                        ConstantPool.LONGVALUE_LONG_METHOD_NAME, 
                                        ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_float:
                        // invokevirtual: floatValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangFloatConstantPoolName, 
                                        ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, 
                                        ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_double:
                        // invokevirtual: doubleValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         2, // return type size
                                         ConstantPool.JavaLangDoubleConstantPoolName, 
                                        ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, 
                                        ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_boolean:
                        // invokevirtual: booleanValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangBooleanConstantPoolName, 
                                        ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, 
                                        ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE);
              }
}


Clone Instance
2
Line Count
81
Source Line
2734
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/codegen/CodeStream.java

public void getBaseTypeValue(int baseTypeID) {
        switch (baseTypeID) {
                case TypeIds.T_byte:
                        // invokevirtual: byteValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangByteConstantPoolName, 
                                        ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, 
                                        ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_short:
                        // invokevirtual: shortValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangShortConstantPoolName, 
                                        ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, 
                                        ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_char:
                        // invokevirtual: charValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangCharacterConstantPoolName, 
                                        ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, 
                                        ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_int:
                        // invokevirtual: intValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangIntegerConstantPoolName, 
                                        ConstantPool.INTVALUE_INTEGER_METHOD_NAME, 
                                        ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_long:
                        // invokevirtual: longValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         2, // return type size
                                         ConstantPool.JavaLangLongConstantPoolName, 
                                        ConstantPool.LONGVALUE_LONG_METHOD_NAME, 
                                        ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_float:
                        // invokevirtual: floatValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangFloatConstantPoolName, 
                                        ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, 
                                        ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_double:
                        // invokevirtual: doubleValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         2, // return type size
                                         ConstantPool.JavaLangDoubleConstantPoolName, 
                                        ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, 
                                        ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE);
                        break;
                case TypeIds.T_boolean:
                        // invokevirtual: booleanValue()
                        this.invoke(
                                        Opcodes.OPC_invokevirtual, 
                                        0, // argCount
                                         1, // return type size
                                         ConstantPool.JavaLangBooleanConstantPoolName, 
                                        ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, 
                                        ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE);
              }
}


Clone AbstractionParameter Count: 2Parameter Bindings

public void [[#variableb89c6ec0]](int  [[#variableb89c6da0]]) {
  switch ( [[#variableb89c6da0]]) {
    case TypeIds.T_byte:
      // invokevirtual: byteValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangByteConstantPoolName, ConstantPool.BYTEVALUE_BYTE_METHOD_NAME, ConstantPool.BYTEVALUE_BYTE_METHOD_SIGNATURE);
      break;
    case TypeIds.T_short:
      // invokevirtual: shortValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangShortConstantPoolName, ConstantPool.SHORTVALUE_SHORT_METHOD_NAME, ConstantPool.SHORTVALUE_SHORT_METHOD_SIGNATURE);
      break;
    case TypeIds.T_char:
      // invokevirtual: charValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangCharacterConstantPoolName, ConstantPool.CHARVALUE_CHARACTER_METHOD_NAME, ConstantPool.CHARVALUE_CHARACTER_METHOD_SIGNATURE);
      break;
    case TypeIds.T_int:
      // invokevirtual: intValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangIntegerConstantPoolName, ConstantPool.INTVALUE_INTEGER_METHOD_NAME, ConstantPool.INTVALUE_INTEGER_METHOD_SIGNATURE);
      break;
    case TypeIds.T_long:
      // invokevirtual: longValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   2, // return type size
                   ConstantPool.JavaLangLongConstantPoolName, ConstantPool.LONGVALUE_LONG_METHOD_NAME, ConstantPool.LONGVALUE_LONG_METHOD_SIGNATURE);
      break;
    case TypeIds.T_float:
      // invokevirtual: floatValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangFloatConstantPoolName, ConstantPool.FLOATVALUE_FLOAT_METHOD_NAME, ConstantPool.FLOATVALUE_FLOAT_METHOD_SIGNATURE);
      break;
    case TypeIds.T_double:
      // invokevirtual: doubleValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   2, // return type size
                   ConstantPool.JavaLangDoubleConstantPoolName, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_NAME, ConstantPool.DOUBLEVALUE_DOUBLE_METHOD_SIGNATURE);
      break;
    case TypeIds.T_boolean:
      // invokevirtual: booleanValue()
      this.invoke(Opcodes.OPC_invokevirtual, 0, // argCount
                   1, // return type size
                   ConstantPool.JavaLangBooleanConstantPoolName, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_NAME, ConstantPool.BOOLEANVALUE_BOOLEAN_METHOD_SIGNATURE);
  }
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b89c6ec0]]
generateUnboxingConversion 
12[[#b89c6ec0]]
getBaseTypeValue 
21[[#b89c6da0]]
unboxedTypeID 
22[[#b89c6da0]]
baseTypeID