Fixed NETTY-336 Fine-grained control over thread renaming

Fixed exception message
This commit is contained in:
Trustin Lee 2011-03-29 16:15:11 +09:00
parent 89de2e4b95
commit 10e2fc44e5

View File

@ -65,7 +65,7 @@ public class NamedThreadFactory implements ThreadFactory {
if (priority < Thread.MIN_PRIORITY || priority > Thread.MAX_PRIORITY) {
throw new IllegalArgumentException(
"priority: " + priority +
" (expected: >= " + Thread.MIN_PRIORITY + " && <= " + Thread.MAX_PRIORITY);
" (expected: >= " + Thread.MIN_PRIORITY + " && <= " + Thread.MAX_PRIORITY + ')');
}
this.prefix = prefix;