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

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

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

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

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

Reply via email to