RFR: 8274946: Cleanup unnecessary calls to Throwable.initCause() in java.rmi

Andrey Turbanov github.com+741251+turbanoff at openjdk.java.net
Fri Oct 8 07:23:25 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.rmi module

Changes: https://git.openjdk.java.net/jdk/pull/5854/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5854&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274946
  Stats: 20 lines in 5 files changed: 0 ins; 10 del; 10 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5854.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5854/head:pull/5854

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


More information about the core-libs-dev mailing list