FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix error: Unusable type signature for overload of graphql.schema.SchemaTraverser::depthFirst #4147 by marktech0813 · Pull Request #4165 · graphql-java/graphql-java · GitHub

Fix error: Unusable type signature for overload of graphql.schema.SchemaTraverser::depthFirst #4147 - #4165

Merged
dondonz merged 1 commit into
graphql-java:masterfrom
marktech0813:fix-issues
Dec 7, 2025
Merged

Fix error: Unusable type signature for overload of graphql.schema.SchemaTraverser::depthFirst #4147#4165
dondonz merged 1 commit into
graphql-java:masterfrom
marktech0813:fix-issues

Conversation

marktech0813 commented Nov 10, 2025
edited
Loading

Copy link
Copy Markdown
Contributor

I found the problematic overload in SchemaTraverser and updated its public API to accept the correct visitor type, ensuring it’s usable outside the class.

This removes the unusable public signature that referenced the private TraverserDelegateVisitor type. All existing internal calls (which pass new TraverserDelegateVisitor(...)) still work because that class implements TraverserVisitor.

Summary:

  • Changed SchemaTraverser.depthFirst(Traverser, TraverserDelegateVisitor, ...) to use TraverserVisitor instead, and adjusted the helper accordingly.
  • Public API is now usable by callers without referencing a private inner class; no behavior change for existing internal usage.

Contribution by Gittensor, learn more at https://gittensor.io/

…emaTraverser::depthFirst graphql-java#4147

I found the problematic overload in SchemaTraverser and updated its public API to accept the correct visitor type, ensuring it’s usable outside the class.

This removes the unusable public signature that referenced the private TraverserDelegateVisitor type.
All existing internal calls (which pass new TraverserDelegateVisitor(...)) still work because that class implements TraverserVisitor<GraphQLSchemaElement>.

Summary:
- Changed SchemaTraverser.depthFirst(Traverser, TraverserDelegateVisitor, ...) to use TraverserVisitor<GraphQLSchemaElement> instead, and adjusted the helper accordingly.
- Public API is now usable by callers without referencing a private inner class; no behavior change for existing internal usage.
bbakerman added this to the 26.x milestone Nov 10, 2025

bbakerman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Thanks

dondonz merged commit fb5d1dd into graphql-java:master Dec 7, 2025
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL