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

Remove manual boxing/unboxing between objects and primitives in play.libs.Time.java #10635

Merged
merged 1 commit into from Jan 13, 2021
Merged

Remove manual boxing/unboxing between objects and primitives in play.libs.Time.java #10635

merged 1 commit into from Jan 13, 2021

Conversation

Captain1653
Copy link
Contributor

There are many cases manual boxing/unboxing in the class play.libs.Time.java . It is not necessary. Documentation

When you take the object out of the collection, you get the Integer that you put in; if you need an int, you must unbox the Integer using the intValue method. All of this boxing and unboxing is a pain, and clutters up your code. The autoboxing and unboxing feature automates the process, eliminating the pain and the clutter.

Kind regards

@mergify mergify bot merged commit 16c846a into playframework:master Jan 13, 2021
@Captain1653 Captain1653 deleted the time-refactoring branch January 13, 2021 07:36
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.

None yet

2 participants