Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 2 | 2 | 0.968 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 65 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
2 | 6 | 120 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public byte byteValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (byte) 1: (byte) 0; else if (fValue instanceof Character) return (byte) ((Character) fValue).charValue(); else return ((Number) fValue).byteValue(); } |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public short shortValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (short) 1: (short) 0; else if (fValue instanceof Character) return (short) ((Character) fValue).charValue(); else return ((Number) fValue).shortValue(); } |
| |||
/** * @return Returns Primitive Value converted to required type. */ public [[#variable5b26de00]] [[#variable5b26dce0]]() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? ( [[#variable5b26de00]]) 1: ( [[#variable5b26de00]]) 0; else if (fValue instanceof Character) return ( [[#variable5b26de00]]) ((Character) fValue).charValue(); else return ((Number) fValue). [[#variable5b26dce0]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#5b26de00]] | byte |
1 | 2 | [[#5b26de00]] | short |
2 | 1 | [[#5b26dce0]] | byteValue |
2 | 2 | [[#5b26dce0]] | shortValue |