RFR: 8274079: Cleanup unnecessary calls to Throwable.initCause() in java.base module

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Tue Sep 21 13:28:26 UTC 2021


Pass "cause" exception as constructor parameter is shorter and easier to read.

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

Commit messages:
 - [PATCH] Cleanup unnecessary calls to Throwable.initCause() in java.base module

Changes: https://git.openjdk.java.net/jdk/pull/5551/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5551&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274079
  Stats: 133 lines in 22 files changed: 0 ins; 77 del; 56 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5551.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5551/head:pull/5551

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


More information about the core-libs-dev mailing list