Test cleanup: typeResolver builder on unions and interfaces, applied directive tests, and more by dondonz · Pull Request #2954 · graphql-java/graphql-java · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/main/java/graphql/schema/GraphQLDirectiveContainer.java
8 changes: 7 additions & 1 deletion src/main/java/graphql/schema/GraphQLInterfaceType.java
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,13 @@ public Builder clearFields() {
return this;
}


/**
* @param typeResolver the type resolver
*
* @return this builder
*
* @deprecated use {@link graphql.schema.GraphQLCodeRegistry.Builder#typeResolver(GraphQLInterfaceType, TypeResolver)} instead
*/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add doc to make the alternative clearer

@Deprecated
@DeprecatedAt("2018-12-03")
public Builder typeResolver(TypeResolver typeResolver) {
Expand Down
7 changes: 7 additions & 0 deletions src/main/java/graphql/schema/GraphQLUnionType.java
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,13 @@ public Builder extensionDefinitions(List<UnionTypeExtensionDefinition> extension
return this;
}

/**
* @param typeResolver the type resolver
*
* @return this builder
*
* @deprecated use {@link graphql.schema.GraphQLCodeRegistry.Builder#typeResolver(GraphQLUnionType, TypeResolver)} instead
*/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add doc to make the alternative clearer

@Deprecated
@DeprecatedAt("2018-12-03")
public Builder typeResolver(TypeResolver typeResolver) {
Expand Down
82 changes: 39 additions & 43 deletions src/test/groovy/graphql/GraphQLTest.groovy
Loading