From b7ef3261604e07dacb89395f30cec188d38bd501 Mon Sep 17 00:00:00 2001 From: lsafer-meemer <135058778+lsafer-meemer@users.noreply.github.com> Date: Thu, 1 Jun 2023 18:13:32 +0300 Subject: [PATCH] fix(graphql-java): getter blocks wrong cast --- graphql-java/src/main/kotlin/internal/Types.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphql-java/src/main/kotlin/internal/Types.kt b/graphql-java/src/main/kotlin/internal/Types.kt index 3c4d814..f4380cb 100644 --- a/graphql-java/src/main/kotlin/internal/Types.kt +++ b/graphql-java/src/main/kotlin/internal/Types.kt @@ -369,11 +369,11 @@ fun TransformContext.addObjectType( val allInterfaces = type.generateAllInterfacesSequence().toList() @Suppress("UNCHECKED_CAST") - val allGetterBlocks = (allInterfaces.map { it.onGetBlocks } + type.onGetBlocks) + val allGetterBlocks = (allInterfaces.flatMap { it.onGetBlocks } + type.onGetBlocks) as List> @Suppress("UNCHECKED_CAST") - val allGetterBlockingBlocks = (allInterfaces.map { it.onGetBlockingBlocks } + type.onGetBlockingBlocks) + val allGetterBlockingBlocks = (allInterfaces.flatMap { it.onGetBlockingBlocks } + type.onGetBlockingBlocks) as List> val allFields = (allInterfaces.flatMap { it.fields } + type.fields)