Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
12 | 7 | 5 | 0.975 | switch_group |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 12 | 1152 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
2 | 12 | 1164 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
3 | 12 | 1176 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
4 | 13 | 1188 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
5 | 12 | 1201 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
6 | 12 | 1213 | plugins/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/impl/Constant.java |
7 | 12 | 1225 | 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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| ||||
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; |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#9a5034e0]] | T_char |
1 | 2 | [[#9a5034e0]] | T_float |
1 | 3 | [[#9a5034e0]] | T_double |
1 | 4 | [[#9a5034e0]] | T_byte |
1 | 5 | [[#9a5034e0]] | T_short |
1 | 6 | [[#9a5034e0]] | T_int |
1 | 7 | [[#9a5034e0]] | T_long |
2 | 1 | [[#9a503420]] | IntConstant |
2 | 2 | [[#9a503420]] | FloatConstant |
2 | 3 | [[#9a503420]] | DoubleConstant |
2 | 4 | [[#9a503420]] | IntConstant |
2 | 5 | [[#9a503420]] | IntConstant |
2 | 6 | [[#9a503420]] | IntConstant |
2 | 7 | [[#9a503420]] | LongConstant |
3 | 1 | [[#9a5033c0]] | charValue |
3 | 2 | [[#9a5033c0]] | floatValue |
3 | 3 | [[#9a5033c0]] | doubleValue |
3 | 4 | [[#9a5033c0]] | byteValue |
3 | 5 | [[#9a5033c0]] | shortValue |
3 | 6 | [[#9a5033c0]] | intValue |
3 | 7 | [[#9a5033c0]] | longValue |
4 | 1 | [[#9a503360]] | FloatConstant |
4 | 2 | [[#9a503360]] | FloatConstant |
4 | 3 | [[#9a503360]] | DoubleConstant |
4 | 4 | [[#9a503360]] | FloatConstant |
4 | 5 | [[#9a503360]] | FloatConstant |
4 | 6 | [[#9a503360]] | FloatConstant |
4 | 7 | [[#9a503360]] | FloatConstant |
5 | 1 | [[#9a502d60]] | LongConstant |
5 | 2 | [[#9a502d60]] | FloatConstant |
5 | 3 | [[#9a502d60]] | DoubleConstant |
5 | 4 | [[#9a502d60]] | LongConstant |
5 | 5 | [[#9a502d60]] | LongConstant |
5 | 6 | [[#9a502d60]] | LongConstant |
5 | 7 | [[#9a502d60]] | LongConstant |