RFR: 8284567: Collapse identical catch branches in java.base

Joe Darcy darcy at openjdk.java.net
Fri Apr 8 15:37:36 UTC 2022


On Sat, 2 Apr 2022 16:05:06 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> 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

Core libs changes look okay.

I assume the docs build also works fine with the import statements removed.

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

Marked as reviewed by darcy (Reviewer).

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


More information about the core-libs-dev mailing list