RFR: JDK-8257401: Use switch expressions in jdk.internal.net.http and java.net.http

John Jiang jjiang at openjdk.java.net
Tue Dec 1 01:53:56 UTC 2020


On Sat, 21 Nov 2020 11:45:42 GMT, Kartik Ohri <github.com+27751938+amCap1712 at openjdk.org> wrote:

> Hi!
> Kindly review this patch to replace switch statements with switch expressions (where it makes sense) in the http client modules. The rationale is to improve readability of the code.
> Regards,
> Kartik

Just a question.
Do we have clear guideline or requirement for using this new lang feature?
We know there are a lot of old switch-case blocks in the existing codes,
including source codes and test codes.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1364



More information about the security-dev mailing list