From bb301cbcdbac4cd827392c3c634f52ca0f91f6fb Mon Sep 17 00:00:00 2001 From: andue Date: Mon, 15 Jun 2020 11:41:09 +0200 Subject: [PATCH] Updated to v15 graphql.Assert API --- build.gradle | 2 +- .../java/graphql/spring/web/reactive/GraphQLInvocationData.java | 2 +- .../java/graphql/spring/web/servlet/GraphQLInvocationData.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 38b013f..84a3cfd 100644 --- a/build.gradle +++ b/build.gradle @@ -39,7 +39,7 @@ subprojects { group = 'com.graphql-java' ext { - graphqlJavaVersion = "12.0" + graphqlJavaVersion = "15.0" springVersion = "5.1.2.RELEASE" springBootVersion = "2.1.0.RELEASE" jacksonVersion = "2.9.6" diff --git a/graphql-java-spring-webflux/src/main/java/graphql/spring/web/reactive/GraphQLInvocationData.java b/graphql-java-spring-webflux/src/main/java/graphql/spring/web/reactive/GraphQLInvocationData.java index 35fc469..7697e39 100644 --- a/graphql-java-spring-webflux/src/main/java/graphql/spring/web/reactive/GraphQLInvocationData.java +++ b/graphql-java-spring-webflux/src/main/java/graphql/spring/web/reactive/GraphQLInvocationData.java @@ -14,7 +14,7 @@ public class GraphQLInvocationData { private final Map variables; public GraphQLInvocationData(String query, String operationName, Map variables) { - this.query = Assert.assertNotNull(query, "query must be provided"); + this.query = Assert.assertNotNull(query, () -> "query must be provided"); this.operationName = operationName; this.variables = variables != null ? variables : Collections.emptyMap(); } diff --git a/graphql-java-spring-webmvc/src/main/java/graphql/spring/web/servlet/GraphQLInvocationData.java b/graphql-java-spring-webmvc/src/main/java/graphql/spring/web/servlet/GraphQLInvocationData.java index 43806b6..232d882 100644 --- a/graphql-java-spring-webmvc/src/main/java/graphql/spring/web/servlet/GraphQLInvocationData.java +++ b/graphql-java-spring-webmvc/src/main/java/graphql/spring/web/servlet/GraphQLInvocationData.java @@ -14,7 +14,7 @@ public class GraphQLInvocationData { private final Map variables; public GraphQLInvocationData(String query, String operationName, Map variables) { - this.query = Assert.assertNotNull(query, "query must be provided"); + this.query = Assert.assertNotNull(query, () -> "query must be provided"); this.operationName = operationName; this.variables = variables != null ? variables : Collections.emptyMap(); }