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

Kartik Ohri github.com+27751938+amcap1712 at openjdk.java.net
Mon Nov 30 12:53:02 UTC 2020


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

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

Commit messages:
 - Use switch expressions in jdk.internal.net.http and java.net.http

Changes: https://git.openjdk.java.net/jdk/pull/1364/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=1364&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8257401
  Stats: 270 lines in 17 files changed: 1 ins; 137 del; 132 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1364.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1364/head:pull/1364

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



More information about the security-dev mailing list