CloneSet3566


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6220.968class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1665
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
26120
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
Clone Instance
1
Line Count
6
Source Line
65
Source File
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();
        }


Clone Instance
2
Line Count
6
Source Line
120
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java

        /**
         * @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();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#5b26de00]]
byte 
12[[#5b26de00]]
short 
21[[#5b26dce0]]
byteValue 
22[[#5b26dce0]]
shortValue