Skip to content

Conversation

@marktech0813
Copy link
Contributor

@marktech0813 marktech0813 commented Nov 10, 2025

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 bbakerman added this to the 26.x milestone Nov 10, 2025
Copy link
Member

@bbakerman bbakerman left a comment

Choose a reason for hiding this comment

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

Thanks

@dondonz dondonz merged commit fb5d1dd into graphql-java:master Dec 7, 2025
4 checks passed
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