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.
This commit is contained in:
Norman Maurer 2016-04-01 15:03:46 +02:00
parent fcbeebf6df
commit b32e07c75a

View File

@ -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;