Skip to content

IntegerとBoxing#3

Open
Gaddict wants to merge 2 commits into
masterfrom
Gaddict-patch-3
Open

IntegerとBoxing#3
Gaddict wants to merge 2 commits into
masterfrom
Gaddict-patch-3

Conversation

@Gaddict
Copy link
Copy Markdown
Member

@Gaddict Gaddict commented Jan 27, 2016

No description provided.

Comment thread java/boxing/IntegerBoxing.java Outdated
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

不必要な boxing/unboxing を行ってる様に見えます。 Integer.parseInt で良さそうですね。

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

この指摘は、Integer.valueOf(戻り値の型がIntegerという指摘)
受け取るのがintならparseIntの方が効率が良いという話

@Gaddict
Copy link
Copy Markdown
Member Author

Gaddict commented Jan 27, 2016

👍

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.

1 participant