Skip to content

Add toString() implementations for RawVariables and CoercedVariables classes #3629

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

oliverlockwood
Copy link
Contributor

Closes #3628.

I have not bothered doing any unit tests of this very minor change, not least because best practices mean nobody should be relying on the output of a toString() method, anyway. However, if you really want UTs for this, let me know and I can add them.

I have deliberately not put a descriptive wrapper around the toString() call to the internal object; but again, if you would prefer otherwise, please advise.

Thanks in advance for your review.

@bbakerman
Copy link
Member

Thanks for this. Its a small change but all small changes help and I am a big beleiver in good toString() merthods especially when inside a debugger

@bbakerman bbakerman added this pull request to the merge queue Jun 12, 2024
Merged via the queue into graphql-java:master with commit 4512e5b Jun 12, 2024
1 check passed
@oliverlockwood oliverlockwood deleted the 3628-add-toString-implementations-for-RawVariables-and-CoercedVariables-classes branch June 12, 2024 13:15
@oliverlockwood oliverlockwood restored the 3628-add-toString-implementations-for-RawVariables-and-CoercedVariables-classes branch June 12, 2024 13:15
@oliverlockwood oliverlockwood deleted the 3628-add-toString-implementations-for-RawVariables-and-CoercedVariables-classes branch June 12, 2024 13:15
@oliverlockwood
Copy link
Contributor Author

Thanks for this. Its a small change but all small changes help and I am a big beleiver in good toString() merthods especially when inside a debugger

My pleasure. Thanks for being receptive to contributions.

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.

Improve usefulness of toString() method for debug logging an ExecutionInput
2 participants