From 7a29b3f2d667ec7984d46b3fe36205d904722eff Mon Sep 17 00:00:00 2001 From: Kaan Arik Date: Thu, 9 Jan 2025 11:42:13 +1300 Subject: [PATCH] Update TypeMeta.java --- .../java/com/phocassoftware/graphql/builder/TypeMeta.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java index a545e37..a42c71d 100644 --- a/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java +++ b/graphql-builder/src/main/java/com/phocassoftware/graphql/builder/TypeMeta.java @@ -67,8 +67,8 @@ private void processGeneric(TypeMeta target, TypeVariable type, AnnotatedElement if (owningClass instanceof Class) { findType(target, type, (Class) owningClass, element); } else if (owningClass instanceof ParameterizedType) { - if (element instanceof Member) { - var declaringClass = ((Member) element).getDeclaringClass(); + if (element instanceof Member member) { + var declaringClass = member.getDeclaringClass(); if (declaringClass.equals(target.type)) { findType(target, type, target.type, element); return;