Skip to content

Commit 837f60c

Browse files
committed
Removing some methods deprecated for more than 1 year
1 parent c87b842 commit 837f60c

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

src/main/java/graphql/execution/DataFetcherResult.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,6 @@ public class DataFetcherResult<T> {
3939
private final Object localContext;
4040
private final Map<Object, Object> extensions;
4141

42-
/**
43-
* Creates a data fetcher result
44-
*
45-
* @param data the data
46-
* @param errors the errors
47-
*
48-
* @deprecated use the {@link #newResult()} builder instead
49-
*/
50-
@Internal
51-
@Deprecated(since = "2019-01-11")
52-
public DataFetcherResult(T data, List<GraphQLError> errors) {
53-
this(data, errors, null, null);
54-
}
55-
5642
private DataFetcherResult(T data, List<GraphQLError> errors, Object localContext, Map<Object, Object> extensions) {
5743
this.data = data;
5844
this.errors = ImmutableList.copyOf(assertNotNull(errors));

src/main/java/graphql/execution/ExecutionStepInfo.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,6 @@ private ExecutionStepInfo(Builder builder) {
7777
this.fieldContainer = builder.fieldContainer;
7878
}
7979

80-
/**
81-
* @return the GraphQLObjectType defining the {@link #getFieldDefinition()}
82-
*
83-
* @see ExecutionStepInfo#getObjectType()
84-
* @deprecated use {@link #getObjectType()} instead as it is named better
85-
*/
86-
@Deprecated(since = "2022-02-03")
87-
public GraphQLObjectType getFieldContainer() {
88-
return fieldContainer;
89-
}
90-
9180
/**
9281
* The GraphQLObjectType where fieldDefinition is defined.
9382
* Note:

src/main/java/graphql/execution/FieldValueInfo.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@ public CompletableFuture<Object> getFieldValueFuture() {
7474
return Async.toCompletableFuture(fieldValueObject);
7575
}
7676

77-
/**
78-
* Kept for legacy reasons - this method is no longer sensible and is no longer used by the graphql-java engine
79-
* and is kept only for backwards compatible API reasons.
80-
*
81-
* @return a promise to the {@link ExecutionResult} that wraps the field value.
82-
*/
83-
@Deprecated(since = "2023-09-11")
84-
public CompletableFuture<ExecutionResult> getFieldValue() {
85-
return getFieldValueFuture().thenApply(fv -> ExecutionResultImpl.newExecutionResult().data(fv).build());
86-
}
87-
8877
/**
8978
* @return true if the value is a {@link CompletableFuture} promise to a value
9079
*/

0 commit comments

Comments
 (0)