Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
15 | 2 | 2 | 0.956 | switch_groups[6] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 15 | 482 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java |
2 | 15 | 539 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java |
| ||||
case 'b': if (nameLen == 4) // byte return new Byte((byte) s); // narrowing. else return avoidReflectException ? Boolean.FALSE: value; // completely wrong. case 'c': return new Character((char) s); // narrowing. case 'd': return new Double(s); // widening. case 'f': return new Float(s); // widening. case 'i': return new Integer(s); // widening. case 'l': return new Long(s); // widening. |
| ||||
case 'b': if (nameLen == 4) // byte return new Byte((byte) i); // narrowing. else return avoidReflectException ? Boolean.FALSE: value; // completely wrong. case 'c': return new Character((char) i); // narrowing case 'd': return new Double(i); // widening. case 'f': return new Float(i); // widening. case 'i': return value; // exact match case 'l': return new Long(i); // widening. |
| |||
case 'b': if (nameLen == 4) // byte return new Byte((byte) [[#variableb96102a0]]); // narrowing. else return avoidReflectException ? Boolean.FALSE: value; // completely wrong. case 'c': return new Character((char) [[#variableb96102a0]]); // narrowing // narrowing. case 'd': return new Double( [[#variableb96102a0]]); // widening. case 'f': return new Float( [[#variableb96102a0]]); // widening. case 'i': return [[#variable547eebe0]]; // exact match // widening. case 'l': return new Long( [[#variableb96102a0]]); // widening. |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b96102a0]] | i |
1 | 2 | [[#b96102a0]] | s |
2 | 1 | [[#547eebe0]] | value |
2 | 2 | [[#547eebe0]] | new Integer(s) |