CloneSet1316


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
6420.973class_body_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1676
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
2687
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
3698
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
46109
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java
Clone Instance
1
Line Count
6
Source Line
76
Source File
plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java

        /**
         * @return Returns Primitive Value converted to required type.
         */
        public double doubleValue() {
                if (fValue instanceof Boolean)
                        return ((Boolean) fValue).booleanValue() ? (double) 1: (double) 0;
                else if (fValue instanceof Character)
                        return ((Character) fValue).charValue();
                     else
                     return ((Number) fValue).doubleValue();
        }


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

        /**
         * @return Returns Primitive Value converted to required type.
         */
        public float floatValue() {
                if (fValue instanceof Boolean)
                        return ((Boolean) fValue).booleanValue() ? (float) 1: (float) 0;
                else if (fValue instanceof Character)
                        return ((Character) fValue).charValue();
                     else
                     return ((Number) fValue).floatValue();
        }


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

        /**
         * @return Returns Primitive Value converted to required type.
         */
        public int intValue() {
                if (fValue instanceof Boolean)
                        return ((Boolean) fValue).booleanValue() ? (int) 1: (int) 0;
                else if (fValue instanceof Character)
                        return ((Character) fValue).charValue();
                     else
                     return ((Number) fValue).intValue();
        }


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

        /**
         * @return Returns Primitive Value converted to required type.
         */
        public long longValue() {
                if (fValue instanceof Boolean)
                        return ((Boolean) fValue).booleanValue() ? (long) 1: (long) 0;
                else if (fValue instanceof Character)
                        return ((Character) fValue).charValue();
                     else
                     return ((Number) fValue).longValue();
        }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * @return Returns Primitive Value converted to required type.
         */
public [[#variableb9ddfe40]]  [[#variableb9ddfd20]]() {
  if (fValue instanceof Boolean)
    return ((Boolean) fValue).booleanValue() ? ( [[#variableb9ddfe40]]) 1: ( [[#variableb9ddfe40]]) 0;
  else
    if (fValue instanceof Character)
      return ((Character) fValue).charValue();
    else
      return ((Number) fValue). [[#variableb9ddfd20]]();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b9ddfe40]]
double 
12[[#b9ddfe40]]
float 
13[[#b9ddfe40]]
int 
14[[#b9ddfe40]]
long 
21[[#b9ddfd20]]
doubleValue 
22[[#b9ddfd20]]
floatValue 
23[[#b9ddfd20]]
intValue 
24[[#b9ddfd20]]
longValue