CloneSet499


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
22201.000statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
12230
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/PostfixPlusPlusOperator.java
22229
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/PrefixPlusPlusOperator.java
Clone Instance
1
Line Count
22
Source Line
30
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/PostfixPlusPlusOperator.java

                switch (fVariableTypeId) {
                        case T_byte:
                                variable.setValue(newValue((byte) (((IJavaPrimitiveValue) variable.getValue()).getByteValue() + 1)));
                                break;
                        case T_short:
                                variable.setValue(newValue((short) (((IJavaPrimitiveValue) variable.getValue()).getShortValue() + 1)));
                                break;
                        case T_char:
                                variable.setValue(newValue((char) (((IJavaPrimitiveValue) variable.getValue()).getCharValue() + 1)));
                                break;
                        case T_int:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getIntValue() + 1));
                                break;
                        case T_long:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getLongValue() + 1));
                                break;
                        case T_float:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getFloatValue() + 1));
                                break;
                        case T_double:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getDoubleValue() + 1));
                                break;
                      }


Clone Instance
2
Line Count
22
Source Line
29
Source File
plugins/org.eclipse.jdt.debug/eval/org/eclipse/jdt/internal/debug/eval/ast/instructions/PrefixPlusPlusOperator.java

                switch (fVariableTypeId) {
                        case T_byte:
                                variable.setValue(newValue((byte) (((IJavaPrimitiveValue) variable.getValue()).getByteValue() + 1)));
                                break;
                        case T_short:
                                variable.setValue(newValue((short) (((IJavaPrimitiveValue) variable.getValue()).getShortValue() + 1)));
                                break;
                        case T_char:
                                variable.setValue(newValue((char) (((IJavaPrimitiveValue) variable.getValue()).getCharValue() + 1)));
                                break;
                        case T_int:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getIntValue() + 1));
                                break;
                        case T_long:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getLongValue() + 1));
                                break;
                        case T_float:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getFloatValue() + 1));
                                break;
                        case T_double:
                                variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getDoubleValue() + 1));
                                break;
                      }


Clone AbstractionParameter Count: 0Parameter Bindings

switch (fVariableTypeId) {
  case T_byte:
    variable.setValue(newValue((byte) (((IJavaPrimitiveValue) variable.getValue()).getByteValue() + 1)));
    break;
  case T_short:
    variable.setValue(newValue((short) (((IJavaPrimitiveValue) variable.getValue()).getShortValue() + 1)));
    break;
  case T_char:
    variable.setValue(newValue((char) (((IJavaPrimitiveValue) variable.getValue()).getCharValue() + 1)));
    break;
  case T_int:
    variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getIntValue() + 1));
    break;
  case T_long:
    variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getLongValue() + 1));
    break;
  case T_float:
    variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getFloatValue() + 1));
    break;
  case T_double:
    variable.setValue(newValue(((IJavaPrimitiveValue) variable.getValue()).getDoubleValue() + 1));
    break;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None