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: - Merge remote-tracking branch 'origin/master' into collapse_identical_catch_java.base - [PATCH] Collapse identical catch branches in java.base - [PATCH] Collapse identical catch branches in java.base Changes: https://git.openjdk.java.net/jdk/pull/8081/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=8081&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8284567 Stats: 106 lines in 17 files changed: 0 ins; 60 del; 46 mod Patch: https://git.openjdk.java.net/jdk/pull/8081.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/8081/head:pull/8081 PR: https://git.openjdk.java.net/jdk/pull/8081
