RFR: 8282574: Cleanup unnecessary calls to Throwable.initCause() in jdk.compiler

Andrey Turbanov aturbanov at openjdk.java.net
Wed Mar 2 18:50:46 UTC 2022


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

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

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

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

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


More information about the compiler-dev mailing list