Skip to content
This repository was archived by the owner on Oct 25, 2021. It is now read-only.

Commit 0261d9f

Browse files
committed
cleanup
1 parent 9a40de5 commit 0261d9f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

graphql-java-spring-webmvc/src/main/java/graphql/spring/web/servlet/components/DefaultExecutionResultHandler.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,22 @@
22

33
import com.fasterxml.jackson.databind.ObjectMapper;
44
import graphql.ExecutionResult;
5+
import graphql.Internal;
56
import graphql.spring.web.servlet.ExecutionResultHandler;
67
import org.springframework.beans.factory.annotation.Autowired;
78
import org.springframework.stereotype.Component;
89

910
import java.util.concurrent.CompletableFuture;
1011

1112
@Component
13+
@Internal
1214
public class DefaultExecutionResultHandler implements ExecutionResultHandler {
1315

1416
@Autowired
1517
ObjectMapper objectMapper;
1618

1719
@Override
18-
public Object handleExecutionResult(CompletableFuture<ExecutionResult> executionResultMono) {
19-
return executionResultMono.thenApply(executionResult -> handleImpl(executionResult));
20-
}
21-
22-
private Object handleImpl(ExecutionResult executionResult) {
23-
return executionResult.toSpecification();
20+
public Object handleExecutionResult(CompletableFuture<ExecutionResult> executionResultCF) {
21+
return executionResultCF.thenApply(ExecutionResult::toSpecification);
2422
}
2523
}

0 commit comments

Comments
 (0)