From c8a8fb2b8303ad70d1cb26185b7bc01f4b11f7bc Mon Sep 17 00:00:00 2001 From: rstoyanchev Date: Fri, 16 Jun 2023 11:14:42 +0100 Subject: [PATCH] Drop deprecated method in ExceptionResolversExceptionHandler Closes gh-711 --- .../execution/ExceptionResolversExceptionHandler.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/spring-graphql/src/main/java/org/springframework/graphql/execution/ExceptionResolversExceptionHandler.java b/spring-graphql/src/main/java/org/springframework/graphql/execution/ExceptionResolversExceptionHandler.java index 456cc829..6782ee5e 100644 --- a/spring-graphql/src/main/java/org/springframework/graphql/execution/ExceptionResolversExceptionHandler.java +++ b/spring-graphql/src/main/java/org/springframework/graphql/execution/ExceptionResolversExceptionHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2022 the original author or authors. + * Copyright 2002-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -61,13 +61,6 @@ class ExceptionResolversExceptionHandler implements DataFetcherExceptionHandler this.resolvers = new ArrayList<>(resolvers); } - @Override - @Deprecated - public DataFetcherExceptionHandlerResult onException(DataFetcherExceptionHandlerParameters handlerParameters) { - // This is not expected to be called but needs to be implemented until removed: - // https://github.com/graphql-java/graphql-java/issues/2545 - throw new UnsupportedOperationException(); - } @Override public CompletableFuture handleException(DataFetcherExceptionHandlerParameters params) {