RFR: 8284415: Collapse identical catch branches in security libs

Andrey Turbanov aturbanov at openjdk.java.net
Wed Apr 6 06:23:06 UTC 2022


Let's take advantage of Java 7 language feature - "Catching Multiple Exception Types".
It simplifies code. Reduces duplication.
Found by IntelliJ IDEA inspection `Identical 'catch' branches in 'try' statement`

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

Commit messages:
 - [PATCH] Collapse identical catch branches in security libs
 - [PATCH] Collapse identical catch branches in security libs

Changes: https://git.openjdk.java.net/jdk/pull/8068/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8068&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8284415
  Stats: 197 lines in 32 files changed: 1 ins; 124 del; 72 mod
  Patch: https://git.openjdk.java.net/jdk/pull/8068.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/8068/head:pull/8068

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



More information about the security-dev mailing list