Rename parameter 't' to 'thread'.
This commit is contained in:
parent
6dfc3e6403
commit
5fb74a6618
|
@ -215,25 +215,25 @@ public class BasicThreadFactory implements ThreadFactory {
|
||||||
* the wrapped thread factory. It initializes the thread according to the
|
* the wrapped thread factory. It initializes the thread according to the
|
||||||
* options set for this factory.
|
* options set for this factory.
|
||||||
*
|
*
|
||||||
* @param t the thread to be initialized
|
* @param thread the thread to be initialized
|
||||||
*/
|
*/
|
||||||
private void initializeThread(final Thread t) {
|
private void initializeThread(final Thread thread) {
|
||||||
|
|
||||||
if (getNamingPattern() != null) {
|
if (getNamingPattern() != null) {
|
||||||
final Long count = Long.valueOf(threadCounter.incrementAndGet());
|
final Long count = Long.valueOf(threadCounter.incrementAndGet());
|
||||||
t.setName(String.format(getNamingPattern(), count));
|
thread.setName(String.format(getNamingPattern(), count));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getUncaughtExceptionHandler() != null) {
|
if (getUncaughtExceptionHandler() != null) {
|
||||||
t.setUncaughtExceptionHandler(getUncaughtExceptionHandler());
|
thread.setUncaughtExceptionHandler(getUncaughtExceptionHandler());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getPriority() != null) {
|
if (getPriority() != null) {
|
||||||
t.setPriority(getPriority().intValue());
|
thread.setPriority(getPriority().intValue());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (getDaemonFlag() != null) {
|
if (getDaemonFlag() != null) {
|
||||||
t.setDaemon(getDaemonFlag().booleanValue());
|
thread.setDaemon(getDaemonFlag().booleanValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue