Skip to content

fix unnecessary boxing/unboxing#159

Closed
xzel23 wants to merge 1 commit intoapache:trunkfrom
xzel23:boxing_unboxing
Closed

fix unnecessary boxing/unboxing#159
xzel23 wants to merge 1 commit intoapache:trunkfrom
xzel23:boxing_unboxing

Conversation

@xzel23
Copy link

@xzel23 xzel23 commented Mar 18, 2023

Most of the changes make the code just more readable and the compiler does auto(un)boxing where necessary.

Replacing Boolean.valueOf() and Float.valueOf() on the other hand completely avoids a boxing/unboxing cycle because in both cases the result is stored in a primitive.

@THausherr
Copy link
Contributor

Please close this one (I can close it through the commit message but forgot, twice)

@xzel23 xzel23 closed this Mar 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