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 Original file line number Diff line number Diff line change @@ -35,9 +35,6 @@ public final class Zstd {
35
35
t = e ;
36
36
logger .debug (
37
37
"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 );
41
38
} catch (Throwable e ) {
42
39
t = e ;
43
40
logger .debug ("Failed to load zstd-jni; Zstd support will be unavailable." , t );
@@ -58,7 +55,7 @@ public static boolean isAvailable() {
58
55
/**
59
56
* Throws when zstd support is missing from the classpath or is unavailable on this platform
60
57
* @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
62
59
*/
63
60
public static void ensureAvailability () throws Throwable {
64
61
if (cause != null ) {
You can’t perform that action at this time.
0 commit comments