diff --git a/graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLSourceAutoConfiguration.kt b/graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLSourceAutoConfiguration.kt index 1ca7b63ef..0bb091618 100644 --- a/graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLSourceAutoConfiguration.kt +++ b/graphql-dgs-spring-graphql/src/main/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQLSourceAutoConfiguration.kt @@ -66,14 +66,14 @@ open class DgsSpringGraphQLSourceAutoConfiguration { .instrumentation(instrumentations.orderedStream().toList()) if (properties.schema.inspection.isEnabled) { - if(reportConsumer.isPresent) { + if (reportConsumer.isPresent) { builder.inspectSchemaMappings(reportConsumer.get()) } else { builder.inspectSchemaMappings { message: SchemaReport? -> val messageBuilder = StringBuilder("***Schema Report***\n") val arguments = message?.unmappedArguments()?.map { - if(it.key is SelfDescribingDataFetcher) { + if (it.key is SelfDescribingDataFetcher) { val dataFetcher = (it.key as DgsGraphQLSourceBuilder.DgsSelfDescribingDataFetcher).dataFetcher return@map dataFetcher.method.declaringClass.name + "." + dataFetcher.method.name + " for arguments " + it.value diff --git a/graphql-dgs-spring-graphql/src/test/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQlSmokeTest.kt b/graphql-dgs-spring-graphql/src/test/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQlSmokeTest.kt index da08d49c6..13fcf8fb9 100644 --- a/graphql-dgs-spring-graphql/src/test/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQlSmokeTest.kt +++ b/graphql-dgs-spring-graphql/src/test/kotlin/com/netflix/graphql/dgs/springgraphql/autoconfig/DgsSpringGraphQlSmokeTest.kt @@ -136,7 +136,7 @@ class DgsSpringGraphQlSmokeTest { } @Component - open class TestReportConsumer: Consumer { + open class TestReportConsumer : Consumer { var schemaReport: SchemaReport? = null override fun accept(schemaReport: SchemaReport) {