Skip to content

Commit 71175ec

Browse files
committed
Update warning message
1 parent da2884b commit 71175ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/main/kotlin/graphql/kickstart/tools/resolver/MethodFieldResolver.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,12 @@ internal class MethodFieldResolver(
104104
if (context != null) {
105105
context
106106
} else {
107-
log.warn("Generic context class has been deprecated by graphql-java. " +
108-
"To continue using a custom context class as the last parameter in resolver methods " +
109-
"please insert it into the new GraphQLContext class when building the ExecutionInput.")
107+
log.warn(
108+
"Generic context class has been deprecated by graphql-java. " +
109+
"To continue using a custom context class as the last parameter in resolver methods " +
110+
"please insert it into the GraphQLContext map when building the ExecutionInput. " +
111+
"This warning will become an error in the future."
112+
)
110113
environment.getContext() // TODO: remove deprecated use in next major release
111114
}
112115
}

0 commit comments

Comments
 (0)