Skip to content

Commit 55ab8d2

Browse files
authored
bugfix: GH-132: Add access to ParameterizedTypeImpl to try block (#138)
1 parent 399bf05 commit 55ab8d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

springwolf-core/src/main/java/io/github/stavshamir/springwolf/asyncapi/scanners/channels/annotation/SpringPayloadAnnotationTypeExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ static Class<?> getPayloadParameterClass(Method method, Class<?>[] parameterType
3131
try {
3232
// Resolve generic type for batch listeners
3333
if (parameterClass == List.class) {
34-
Type type = ((ParameterizedType) method.getGenericParameterTypes()[parameterPayloadIndex]).getActualTypeArguments()[0];
3534
try {
35+
Type type = ((ParameterizedType) method.getGenericParameterTypes()[parameterPayloadIndex]).getActualTypeArguments()[0];
3636
return Class.forName(type.getTypeName());
3737
} catch (IllegalAccessError error) {
3838
// remove, when the used java version has been upgraded to support java modules

0 commit comments

Comments
 (0)