Integrated: 8288468: Avoid redundant HashMap.get call in NegotiateAuthentication.firstToken
Andrey Turbanov
aturbanov at openjdk.org
Thu Jun 16 16:06:06 UTC 2022
On Mon, 13 Jun 2022 20:01:27 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:
> Instead of separate `HashMap.get`+`remove` call, we can use single `HashMap.remove` call and use its return value.
> https://urldefense.com/v3/__https://github.com/openjdk/jdk/blob/53a0acee06eb32fba700967c9a34d37ea42f7a99/src/java.base/share/classes/sun/net/www/protocol/http/NegotiateAuthentication.java*L219-L225__;Iw!!ACWV5N9M2RV99hQ!IN2uBDMaaxId8o4vvTxBMFUCKQsVl7Qn_8Gu_rsu4TLxQVAdv-xtLB5oCWOdfX9hdY41Rto3F7c3Q3YsAF-2Hg$
> It makes code a bit cleaner and faster.
This pull request has now been integrated.
Changeset: ce5024f6
Author: Andrey Turbanov <aturbanov at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/ce5024f66fb21400cbb619064d4f0d19849faab4
Stats: 5 lines in 1 file changed: 0 ins; 3 del; 2 mod
8288468: Avoid redundant HashMap.get call in NegotiateAuthentication.firstToken
Reviewed-by: dfuchs, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/9145
More information about the net-dev
mailing list