From c43c0bec2e95d9d39c8c6baf2d020ef0bcaa52d3 Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Tue, 6 Dec 2022 15:38:27 +0000 Subject: [PATCH] Polishing Closes gh-559 --- .../data/query/QueryByExampleDataFetcher.java | 16 ++++++++++------ .../graphql/data/query/QuerydslDataFetcher.java | 16 ++++++++++------ .../data/query/QuerydslDataFetcherTests.java | 4 ++-- 3 files changed, 22 insertions(+), 14 deletions(-) diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java index 85832a38..6ad36fa1 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QueryByExampleDataFetcher.java @@ -326,9 +326,11 @@ public abstract class QueryByExampleDataFetcher { } /** - * Callback interface that can be used to customize QueryByExampleDataFetcher {@link Builder} - * to change its configuration. {@link #autoRegistrationConfigurer(List, List) Auto-registration} - * applies the customizer for DataFetchers based on repositories implementing this interface. + * Callback interface that can be used to customize QueryByExampleDataFetcher + * {@link Builder} to change its configuration. + *

This is supported by {@link #autoRegistrationConfigurer(List, List) + * Auto-registration}, which detects if a repository implements this + * interface and applies it accordingly. * * @param * @since 1.1.1 @@ -419,9 +421,11 @@ public abstract class QueryByExampleDataFetcher { } /** - * Callback interface that can be used to customize QueryByExampleDataFetcher {@link ReactiveBuilder} - * to change its configuration. {@link #autoRegistrationConfigurer(List, List) Auto-registration} - * applies the customizer for DataFetchers based on repositories implementing this interface. + * Callback interface that can be used to customize QueryByExampleDataFetcher + * {@link ReactiveBuilder} to change its configuration. + *

This is supported by {@link #autoRegistrationConfigurer(List, List) + * Auto-registration}, which detects if a repository implements this + * interface and applies it accordingly. * * @param * @since 1.1.1 diff --git a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QuerydslDataFetcher.java b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QuerydslDataFetcher.java index 0940a34e..edcb695f 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/data/query/QuerydslDataFetcher.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/data/query/QuerydslDataFetcher.java @@ -394,9 +394,11 @@ public abstract class QuerydslDataFetcher { /** - * Callback interface that can be used to customize QuerydslDataFetcher {@link Builder} - * to change its configuration. {@link #autoRegistrationConfigurer(List, List) Auto-registration} - * applies the customizer for DataFetchers based on repositories implementing this interface. + * Callback interface that can be used to customize QuerydslDataFetcher + * {@link Builder} to change its configuration. + *

This is supported by {@link #autoRegistrationConfigurer(List, List) + * Auto-registration}, which detects if a repository implements this + * interface and applies it accordingly. * * @param * @since 1.1.1 @@ -516,9 +518,11 @@ public abstract class QuerydslDataFetcher { /** - * Callback interface that can be used to customize QuerydslDataFetcher {@link ReactiveBuilder} - * to change its configuration. {@link #autoRegistrationConfigurer(List, List) Auto-registration} - * applies the customizer for DataFetchers based on repositories implementing this interface. + * Callback interface that can be used to customize QuerydslDataFetcher + * {@link ReactiveBuilder} to change its configuration. + *

This is supported by {@link #autoRegistrationConfigurer(List, List) + * Auto-registration}, which detects if a repository implements this + * interface and applies it accordingly. * * @param * @since 1.1.1 diff --git a/spring-graphql/src/test/java/org/springframework/graphql/data/query/QuerydslDataFetcherTests.java b/spring-graphql/src/test/java/org/springframework/graphql/data/query/QuerydslDataFetcherTests.java index 22ab06c3..78e6fbfd 100644 --- a/spring-graphql/src/test/java/org/springframework/graphql/data/query/QuerydslDataFetcherTests.java +++ b/spring-graphql/src/test/java/org/springframework/graphql/data/query/QuerydslDataFetcherTests.java @@ -282,11 +282,11 @@ class QuerydslDataFetcherTests { } static GraphQlSetup graphQlSetup(@Nullable QuerydslPredicateExecutor executor) { - return initGraphQlSetup(executor, null); + return initGraphQlSetup(executor, null); } static GraphQlSetup graphQlSetup(@Nullable ReactiveQuerydslPredicateExecutor executor) { - return initGraphQlSetup(null, executor); + return initGraphQlSetup(null, executor); } private static GraphQlSetup initGraphQlSetup(