From 437849bd93ccf83782f7081e0a76e88277064758 Mon Sep 17 00:00:00 2001 From: Konstantin Lutovich Date: Tue, 8 May 2018 15:58:23 +0200 Subject: [PATCH] Fix tiny typo in FixedChannelPool error message (#7918) Motivation: Closed `FixedChannelPool` fails acquire and release operations with `IllegalStateException`s. These exceptions had message "FixedChannelPooled was closed". Here "FixedChannelPooled" looks like a typo and should probably be "FixedChannelPool". Modifications: Changed exception message to "FixedChannelPool was closed". Result: A tiny bit cleaner exception message. --- .../src/main/java/io/netty/channel/pool/FixedChannelPool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/transport/src/main/java/io/netty/channel/pool/FixedChannelPool.java b/transport/src/main/java/io/netty/channel/pool/FixedChannelPool.java index 3b3c11195b..1c0ebcc534 100644 --- a/transport/src/main/java/io/netty/channel/pool/FixedChannelPool.java +++ b/transport/src/main/java/io/netty/channel/pool/FixedChannelPool.java @@ -43,10 +43,10 @@ public class FixedChannelPool extends SimpleChannelPool { new TimeoutException("Acquire operation took longer then configured maximum time"), FixedChannelPool.class, "(...)"); static final IllegalStateException POOL_CLOSED_ON_RELEASE_EXCEPTION = ThrowableUtil.unknownStackTrace( - new IllegalStateException("FixedChannelPooled was closed"), + new IllegalStateException("FixedChannelPool was closed"), FixedChannelPool.class, "release(...)"); static final IllegalStateException POOL_CLOSED_ON_ACQUIRE_EXCEPTION = ThrowableUtil.unknownStackTrace( - new IllegalStateException("FixedChannelPooled was closed"), + new IllegalStateException("FixedChannelPool was closed"), FixedChannelPool.class, "acquire0(...)"); public enum AcquireTimeoutAction { /**