From ceb9dd53aa41ecd9721b85d499e4b58154fb12b8 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 29 Oct 2020 07:44:49 +0100 Subject: [PATCH] Errors.throwConnectException(...) should be public (#10745) Motivation: ddebc1027d7cc09850acdd961417c1d650f43dd5 missed to make Errors.throwConnectException(...) public Modifications: Make method public Result: Be able to use Errors.throwConnectException(...) from other module --- .../src/main/java/io/netty/channel/unix/Errors.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java b/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java index 75b6b1b1d0..91c2271a5f 100644 --- a/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java +++ b/transport-native-unix-common/src/main/java/io/netty/channel/unix/Errors.java @@ -94,7 +94,7 @@ public final class Errors { } } - static void throwConnectException(String method, int err) + public static void throwConnectException(String method, int err) throws IOException { if (err == ERROR_EALREADY_NEGATIVE) { throw new ConnectionPendingException();