Skip to content
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

Generate toString() without reflection #753

Merged

Conversation

johnkeeping
Copy link
Contributor

For the same reasons as #150 changed hashCode() and equals(), generate toString() methods that do not use reflection to find the fields of the POJO.

When we switch toString() to iterate over fields instead of using
reflection, we will need all of the fields to be in place before
generating the toString() method.
Generate code to build the result by explicitly appending all of the
fields to the result string.
@joelittlejohn joelittlejohn merged commit f15a37c into joelittlejohn:master Jun 27, 2017
@joelittlejohn joelittlejohn added this to the 0.4.38 milestone Jun 27, 2017
@joelittlejohn joelittlejohn modified the milestones: 0.5.0, 0.4.38 Sep 11, 2017
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.

2 participants