Rename parameter 't' to 'thread'.

This commit is contained in:
Gary Gregory 2017-12-21 08:57:29 -07:00
parent 6dfc3e6403
commit 5fb74a6618
1 changed files with 6 additions and 6 deletions

View File

@ -215,25 +215,25 @@ public class BasicThreadFactory implements ThreadFactory {
* the wrapped thread factory. It initializes the thread according to the
* 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) {
final Long count = Long.valueOf(threadCounter.incrementAndGet());
t.setName(String.format(getNamingPattern(), count));
thread.setName(String.format(getNamingPattern(), count));
}
if (getUncaughtExceptionHandler() != null) {
t.setUncaughtExceptionHandler(getUncaughtExceptionHandler());
thread.setUncaughtExceptionHandler(getUncaughtExceptionHandler());
}
if (getPriority() != null) {
t.setPriority(getPriority().intValue());
thread.setPriority(getPriority().intValue());
}
if (getDaemonFlag() != null) {
t.setDaemon(getDaemonFlag().booleanValue());
thread.setDaemon(getDaemonFlag().booleanValue());
}
}