Skip to content

Commit

Permalink
eclipse-ee4j#596: impossible cast in spi/db/TypeInfo.java
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <[email protected]>
(cherry picked from commit 331b805)
  • Loading branch information
lukasj committed Feb 2, 2023
1 parent a56a696 commit 6965dab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public TypeInfo getItemType() {
Type componentType = ((Class)type).getComponentType();
Type genericComponentType = null;
if (genericType!= null && genericType instanceof GenericArrayType) {
GenericArrayType arrayType = (GenericArrayType) type;
GenericArrayType arrayType = (GenericArrayType) genericType;
genericComponentType = arrayType.getGenericComponentType();
componentType = arrayType.getGenericComponentType();
}
Expand Down

0 comments on commit 6965dab

Please sign in to comment.