Skip to content

Commit 27ddf65

Browse files
committed
Remove catch ExceptionInInitializerError in Zstd
1 parent b24fd46 commit 27ddf65

File tree

1 file changed

+1
-4
lines changed
  • codec/src/main/java/io/netty/handler/codec/compression

1 file changed

+1
-4
lines changed

codec/src/main/java/io/netty/handler/codec/compression/Zstd.java

+1-4
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ public final class Zstd {
3535
t = e;
3636
logger.debug(
3737
"zstd-jni not in the classpath; Zstd support will be unavailable.");
38-
} catch (ExceptionInInitializerError e) {
39-
t = e.getCause();
40-
logger.debug("Failed to load zstd-jni; Zstd support will be unavailable.", t);
4138
} catch (Throwable e) {
4239
t = e;
4340
logger.debug("Failed to load zstd-jni; Zstd support will be unavailable.", t);
@@ -58,7 +55,7 @@ public static boolean isAvailable() {
5855
/**
5956
* Throws when zstd support is missing from the classpath or is unavailable on this platform
6057
* @throws Throwable a ClassNotFoundException if zstd-jni is missing
61-
* or a UnsatisfiedLinkError if zstd native lib can't be loaded
58+
* or a ExceptionInInitializerError if zstd native lib can't be loaded
6259
*/
6360
public static void ensureAvailability() throws Throwable {
6461
if (cause != null) {

0 commit comments

Comments
 (0)