CloneSet257


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
39220.963statement_sequence_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
139158
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/AnnotationInvocationHandler.java
239252
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/AnnotationInvocationHandler.java
Clone Instance
1
Line Count
39
Source Line
158
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/AnnotationInvocationHandler.java

                    // fill in the array.
                    // If it is an array of some primitive type, we will need to unwrap it.
                    if (componentType.isPrimitive()) {
                        if (componentType == boolean .class ) {
                            final Boolean bool = (Boolean) returnObj;
                            Array.setBoolean( array, i, bool.booleanValue());
                        }
                        else if (componentType == byte .class ) {
                            final Byte b = (Byte) returnObj;
                            Array.setByte( array, i, b.byteValue());
                             }
                             else
                             if (componentType == char .class ) {
                            final Character c = (Character) returnObj;
                            Array.setChar( array, i, c.charValue());
                             }
                             else
                             if (componentType == double .class ) {
                            final Double d = (Double) returnObj;
                            Array.setDouble( array, i, d.doubleValue());
                             }
                             else
                             if (componentType == float .class ) {
                            final Float f = (Float) returnObj;
                            Array.setFloat( array, i, f.floatValue());
                             }
                             else
                             if (componentType == int .class ) {
                            final Integer integer = (Integer) returnObj;
                            Array.setInt( array, i, integer.intValue());
                             }
                             else
                             if (componentType == long .class ) {
                            final Long l = (Long) returnObj;
                            Array.setLong( array, i, l.longValue());
                             }
                             else
                             if (componentType == short .class ) {
                            final Short s = (Short) returnObj;
                            Array.setShort( array, i, s.shortValue());
                             }
                             else {
                            throw new IllegalStateException("unrecognized primitive type: " +  componentType);  //$NON-NLS-1$
                             }
                    }
                    else {
                        Array.set( array, i, returnObj);
                    }


Clone Instance
2
Line Count
39
Source Line
252
Source File
plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/AnnotationInvocationHandler.java

                if (componentType.isPrimitive()) {
            if (componentType == boolean .class ) {
                final Boolean bool = (Boolean) actualValue;
                Array.setBoolean( array, 0, bool.booleanValue());
            }
            else if (componentType == byte .class ) {
                final Byte b = (Byte) actualValue;
                Array.setByte( array, 0, b.byteValue());
                 }
                 else
                 if (componentType == char .class ) {
                final Character c = (Character) actualValue;
                Array.setChar( array, 0, c.charValue());
                 }
                 else
                 if (componentType == double .class ) {
                final Double d = (Double) actualValue;
                Array.setDouble( array, 0, d.doubleValue());
                 }
                 else
                 if (componentType == float .class ) {
                final Float f = (Float) actualValue;
                Array.setFloat( array, 0, f.floatValue());
                 }
                 else
                 if (componentType == int .class ) {
                final Integer integer = (Integer) actualValue;
                Array.setInt( array, 0, integer.intValue());
                 }
                 else
                 if (componentType == long .class ) {
                final Long l = (Long) actualValue;
                Array.setLong( array, 0, l.longValue());
                 }
                 else
                 if (componentType == short .class ) {
                final Short s = (Short) actualValue;
                Array.setShort( array, 0, s.shortValue());
                 }
                 else {
                throw new IllegalStateException("unrecognized primitive type: " +  componentType);  //$NON-NLS-1$
                 }
                }
                else {
            Array.set( array, 0, actualValue);
                }


Clone AbstractionParameter Count: 2Parameter Bindings

// fill in the array.
// If it is an array of some primitive type, we will need to unwrap it.
if (componentType.isPrimitive()) {
  if (componentType == boolean .class ) {
    final Boolean bool = (Boolean)  [[#variable63a50820]];
    Array.setBoolean(array,  [[#variable63a50800]], bool.booleanValue());
  }
  else
    if (componentType == byte .class ) {
      final Byte b = (Byte)  [[#variable63a50820]];
      Array.setByte(array,  [[#variable63a50800]], b.byteValue());
    }
    else
      if (componentType == char .class ) {
        final Character c = (Character)  [[#variable63a50820]];
        Array.setChar(array,  [[#variable63a50800]], c.charValue());
      }
      else
        if (componentType == double .class ) {
          final Double d = (Double)  [[#variable63a50820]];
          Array.setDouble(array,  [[#variable63a50800]], d.doubleValue());
        }
        else
          if (componentType == float .class ) {
            final Float f = (Float)  [[#variable63a50820]];
            Array.setFloat(array,  [[#variable63a50800]], f.floatValue());
          }
          else
            if (componentType == int .class ) {
              final Integer integer = (Integer)  [[#variable63a50820]];
              Array.setInt(array,  [[#variable63a50800]], integer.intValue());
            }
            else
              if (componentType == long .class ) {
                final Long l = (Long)  [[#variable63a50820]];
                Array.setLong(array,  [[#variable63a50800]], l.longValue());
              }
              else
                if (componentType == short .class ) {
                  final Short s = (Short)  [[#variable63a50820]];
                  Array.setShort(array,  [[#variable63a50800]], s.shortValue());
                }
                else {
                  throw new IllegalStateException("unrecognized primitive type: " + componentType); //$NON-NLS-1$
                }
}
else {
  Array.set(array,  [[#variable63a50800]],  [[#variable63a50820]]);
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#63a50820]]
returnObj 
12[[#63a50820]]
actualValue 
21[[#63a50800]]
i 
22[[#63a50800]]
0