Skip to content

Small adjustments to the new record code.#2219

Merged
eamonnmcmanus merged 2 commits into
google:masterfrom
eamonnmcmanus:recordtweaks
Oct 12, 2022
Merged

Small adjustments to the new record code.#2219
eamonnmcmanus merged 2 commits into
google:masterfrom
eamonnmcmanus:recordtweaks

Conversation

@eamonnmcmanus
Copy link
Copy Markdown
Member

  • Replace wildcard imports with single imports.
  • Enable Java17RecordTest and fix its many previously-hidden problems.
  • Use a Map to get primitive zero values rather than a potentially-expensive reflective trick.
  • Apply some automated code fixes.

* Replace wildcard imports with single imports.
* Enable `Java17RecordTest` and fix its many previously-hidden problems.
* Use a `Map` to get primitive zero values rather than a potentially-expensive reflective trick.
* Apply some automated code fixes.
@eamonnmcmanus
Copy link
Copy Markdown
Member Author

@staale FYI, very minor things.

Copy link
Copy Markdown
Contributor

@Marcono1234 Marcono1234 left a comment

Choose a reason for hiding this comment

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

Looks good! Only some minor suggestions for improvements, but if you want I can address them in a separate pull request as well.

Comment thread gson/src/test/java/com/google/gson/functional/Java17RecordTest.java Outdated
Comment thread gson/src/test/java/com/google/gson/functional/Java17RecordTest.java
Comment thread gson/src/test/java/com/google/gson/functional/Java17RecordTest.java Outdated
@eamonnmcmanus eamonnmcmanus merged commit 86c35bb into google:master Oct 12, 2022
@eamonnmcmanus eamonnmcmanus deleted the recordtweaks branch October 12, 2022 21:24
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