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