CloneSet74


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
12750.975switch_group
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1121152
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
2121164
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
3121176
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
4131188
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
5121201
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
6121213
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
7121225
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java
Clone Instance
1
Line Count
12
Source Line
1152
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_char:
                                switch (rightId) {
                                        case T_char:    return IntConstant.fromValue(left.charValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.charValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.charValue() + right.doubleValue());
                                        case T_byte:    return IntConstant.fromValue(left.charValue() + right.byteValue());
                                        case T_short:   return IntConstant.fromValue(left.charValue() + right.shortValue());
                                        case T_int:             return IntConstant.fromValue(left.charValue() + right.intValue());
                                        case T_long:    return LongConstant.fromValue(left.charValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone Instance
2
Line Count
12
Source Line
1164
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_float:
                                switch (rightId) {
                                        case T_char:    return FloatConstant.fromValue(left.floatValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.floatValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.floatValue() + right.doubleValue());
                                        case T_byte:    return FloatConstant.fromValue(left.floatValue() + right.byteValue());
                                        case T_short:   return FloatConstant.fromValue(left.floatValue() + right.shortValue());
                                        case T_int:             return FloatConstant.fromValue(left.floatValue() + right.intValue());
                                        case T_long:    return FloatConstant.fromValue(left.floatValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone Instance
3
Line Count
12
Source Line
1176
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_double:
                                switch (rightId) {
                                        case T_char:    return DoubleConstant.fromValue(left.doubleValue() + right.charValue());
                                        case T_float:   return DoubleConstant.fromValue(left.doubleValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.doubleValue() + right.doubleValue());
                                        case T_byte:    return DoubleConstant.fromValue(left.doubleValue() + right.byteValue());
                                        case T_short:   return DoubleConstant.fromValue(left.doubleValue() + right.shortValue());
                                        case T_int:             return DoubleConstant.fromValue(left.doubleValue() + right.intValue());
                                        case T_long:    return DoubleConstant.fromValue(left.doubleValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone Instance
4
Line Count
13
Source Line
1188
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_byte:
                                switch (rightId) {
                                        case T_char:    return IntConstant.fromValue(left.byteValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.byteValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.byteValue() + right.doubleValue());
                                        case T_byte:    return IntConstant.fromValue(left.byteValue() + right.byteValue());
                                        case T_short:   return IntConstant.fromValue(left.byteValue() + right.shortValue());
                                        case T_int:             return IntConstant.fromValue(left.byteValue() + right.intValue());
                                        case T_long:    return LongConstant.fromValue(left.byteValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }

                        break;


Clone Instance
5
Line Count
12
Source Line
1201
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_short:
                                switch (rightId) {
                                        case T_char:    return IntConstant.fromValue(left.shortValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.shortValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.shortValue() + right.doubleValue());
                                        case T_byte:    return IntConstant.fromValue(left.shortValue() + right.byteValue());
                                        case T_short:   return IntConstant.fromValue(left.shortValue() + right.shortValue());
                                        case T_int:             return IntConstant.fromValue(left.shortValue() + right.intValue());
                                        case T_long:    return LongConstant.fromValue(left.shortValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone Instance
6
Line Count
12
Source Line
1213
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_int:
                                switch (rightId) {
                                        case T_char:    return IntConstant.fromValue(left.intValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.intValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.intValue() + right.doubleValue());
                                        case T_byte:    return IntConstant.fromValue(left.intValue() + right.byteValue());
                                        case T_short:   return IntConstant.fromValue(left.intValue() + right.shortValue());
                                        case T_int:             return IntConstant.fromValue(left.intValue() + right.intValue());
                                        case T_long:    return LongConstant.fromValue(left.intValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone Instance
7
Line Count
12
Source Line
1225
Source File
plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java

                        case T_long:
                                switch (rightId) {
                                        case T_char:    return LongConstant.fromValue(left.longValue() + right.charValue());
                                        case T_float:   return FloatConstant.fromValue(left.longValue() + right.floatValue());
                                        case T_double:  return DoubleConstant.fromValue(left.longValue() + right.doubleValue());
                                        case T_byte:    return LongConstant.fromValue(left.longValue() + right.byteValue());
                                        case T_short:   return LongConstant.fromValue(left.longValue() + right.shortValue());
                                        case T_int:             return LongConstant.fromValue(left.longValue() + right.intValue());
                                        case T_long:    return LongConstant.fromValue(left.longValue() + right.longValue());
                                        case T_JavaLangString:  return StringConstant.fromValue(left.stringValue() + right.stringValue());
                                      }
                        break;


Clone AbstractionParameter Count: 5Parameter Bindings

case [[#variable9a5034e0]]:
  switch (rightId) {
    case T_char:
      return [[#variable9a503420]].fromValue(left. [[#variable9a5033c0]]() + right.charValue());
    case T_float:
      return [[#variable9a503360]].fromValue(left. [[#variable9a5033c0]]() + right.floatValue());
    case T_double:
      return DoubleConstant.fromValue(left. [[#variable9a5033c0]]() + right.doubleValue());
    case T_byte:
      return [[#variable9a503420]].fromValue(left. [[#variable9a5033c0]]() + right.byteValue());
    case T_short:
      return [[#variable9a503420]].fromValue(left. [[#variable9a5033c0]]() + right.shortValue());
    case T_int:
      return [[#variable9a503420]].fromValue(left. [[#variable9a5033c0]]() + right.intValue());
    case T_long:
      return [[#variable9a502d60]].fromValue(left. [[#variable9a5033c0]]() + right.longValue());
    case T_JavaLangString:
      return StringConstant.fromValue(left.stringValue() + right.stringValue());
  }
  break;
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#9a5034e0]]
T_char 
12[[#9a5034e0]]
T_float 
13[[#9a5034e0]]
T_double 
14[[#9a5034e0]]
T_byte 
15[[#9a5034e0]]
T_short 
16[[#9a5034e0]]
T_int 
17[[#9a5034e0]]
T_long 
21[[#9a503420]]
IntConstant 
22[[#9a503420]]
FloatConstant 
23[[#9a503420]]
DoubleConstant 
24[[#9a503420]]
IntConstant 
25[[#9a503420]]
IntConstant 
26[[#9a503420]]
IntConstant 
27[[#9a503420]]
LongConstant 
31[[#9a5033c0]]
charValue 
32[[#9a5033c0]]
floatValue 
33[[#9a5033c0]]
doubleValue 
34[[#9a5033c0]]
byteValue 
35[[#9a5033c0]]
shortValue 
36[[#9a5033c0]]
intValue 
37[[#9a5033c0]]
longValue 
41[[#9a503360]]
FloatConstant 
42[[#9a503360]]
FloatConstant 
43[[#9a503360]]
DoubleConstant 
44[[#9a503360]]
FloatConstant 
45[[#9a503360]]
FloatConstant 
46[[#9a503360]]
FloatConstant 
47[[#9a503360]]
FloatConstant 
51[[#9a502d60]]
LongConstant 
52[[#9a502d60]]
FloatConstant 
53[[#9a502d60]]
DoubleConstant 
54[[#9a502d60]]
LongConstant 
55[[#9a502d60]]
LongConstant 
56[[#9a502d60]]
LongConstant 
57[[#9a502d60]]
LongConstant