From b32e07c75a903300b43b8d606f9f2e41579efdff Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 1 Apr 2016 15:03:46 +0200 Subject: [PATCH] PoolThreadCache uses wrong variable in IllegalArgumentException Motivation: PoolThreadCache includes the wrong value when throwing a IllegalArgumentException because of freeSweepAllocationThreshold. Modifications: Use the correct value. Result: Correct exception message. --- buffer/src/main/java/io/netty/buffer/PoolThreadCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java b/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java index ec0b4beb54..68953a1a4e 100644 --- a/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java +++ b/buffer/src/main/java/io/netty/buffer/PoolThreadCache.java @@ -77,7 +77,7 @@ final class PoolThreadCache { } if (freeSweepAllocationThreshold < 1) { throw new IllegalArgumentException("freeSweepAllocationThreshold: " - + maxCachedBufferCapacity + " (expected: > 0)"); + + freeSweepAllocationThreshold + " (expected: > 0)"); } this.freeSweepAllocationThreshold = freeSweepAllocationThreshold; this.heapArena = heapArena;