Skip to content

Unnecessary unboxing at JsonPrimitive.getAsBoolean() - #2277

Merged
eamonnmcmanus merged 2 commits into
google:masterfrom
MaicolAntali:unnecessary-unboxing
Dec 13, 2022
Merged

Unnecessary unboxing at JsonPrimitive.getAsBoolean()#2277
eamonnmcmanus merged 2 commits into
google:masterfrom
MaicolAntali:unnecessary-unboxing

Conversation

@MaicolAntali

Copy link
Copy Markdown
Contributor

The value is cast to a Boolean. The .booleanValue() is unnecessary.

@eamonnmcmanus

Copy link
Copy Markdown
Member

It seems you're doing a number of different small cleanups to the code base, and thanks for that! I wonder if you could consolidate some of them into bigger PRs, though?

@MaicolAntali

Copy link
Copy Markdown
Contributor Author

@eamonnmcmanus yes make sense! 😄

If for you it's ok merge this one PR. The next PRs I’ll make them bigger and more consolidate

@eamonnmcmanus
eamonnmcmanus merged commit 6c3cf22 into google:master Dec 13, 2022
@MaicolAntali
MaicolAntali deleted the unnecessary-unboxing branch December 16, 2022 15:26
tibor-universe pushed a commit to getuniverse/gson that referenced this pull request Jan 20, 2023
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