We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c08cb96 commit a95c5fbCopy full SHA for a95c5fb
src/main/java/org/scijava/util/Types.java
@@ -2146,8 +2146,8 @@ public static Class<?> getRawType(final Type type,
2146
final Class<?> rawComponentType = getRawType(((GenericArrayType) type)
2147
.getGenericComponentType(), assigningType);
2148
2149
- // create array type from raw component type and return its class
2150
- return Array.newInstance(rawComponentType, 0).getClass();
+ // return the corresponding array type
+ return array(rawComponentType);
2151
}
2152
2153
// (hand-waving) this is not the method you're looking for
0 commit comments