From 0ddf9bf223616f91dc981ed6aea8866624ced3af Mon Sep 17 00:00:00 2001 From: Googler Date: Wed, 29 Mar 2023 00:15:06 -0700 Subject: [PATCH] Remove unneeded use CompilationFailedException. The constructors of the exception are not intended to be part of the API. PiperOrigin-RevId: 520249521 Change-Id: I88780edf24d4294c0ee4b27970e796d991716871 --- .../com/google/devtools/build/android/r8/DexFileMerger.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java b/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java index ff11d15e27fb9c..2877c26d50380f 100644 --- a/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java +++ b/src/tools/android/java/com/google/devtools/build/android/r8/DexFileMerger.java @@ -378,7 +378,7 @@ public static void run(String[] args) throws CompilationFailedException, IOExcep } } - public static void main(String[] args) throws CompilationFailedException { + public static void main(String[] args) { try { if (PRINT_ARGS) { printArgs(args); @@ -386,7 +386,7 @@ public static void main(String[] args) throws CompilationFailedException { run(args); } catch (CompilationFailedException | IOException e) { System.err.println("Merge failed: " + e.getMessage()); - throw new CompilationFailedException("Merge failed: " + e.getMessage()); + throw new RuntimeException("Merge failed: " + e.getMessage(), e); } }