CloneSet1547


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15220.956switch_groups[6]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
115482
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java
215539
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/Factory.java
Clone Instance
1
Line Count
15
Source Line
482
Source File
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.


Clone Instance
2
Line Count
15
Source Line
539
Source File
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) 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.


Clone AbstractionParameter Count: 2Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#b96102a0]]
i 
12[[#b96102a0]]
s 
21[[#547eebe0]]
value 
22[[#547eebe0]]
new Integer(s)