Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
39 | 2 | 2 | 0.963 | statement_sequence_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 39 | 158 | plugins/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/env/AnnotationInvocationHandler.java |
2 | 39 | 252 | 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); } |
| ||||
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); } |
| |||
// 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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#63a50820]] | returnObj |
1 | 2 | [[#63a50820]] | actualValue |
2 | 1 | [[#63a50800]] | i |
2 | 2 | [[#63a50800]] | 0 |