Don't use single letter variable names.

This commit is contained in:
Gary Gregory 2017-12-21 09:01:21 -07:00
parent 5fb74a6618
commit f5a9effebd
1 changed files with 11 additions and 11 deletions

View File

@ -198,15 +198,15 @@ public class BasicThreadFactory implements ThreadFactory {
* factory for creating the thread. Then, on the newly created thread the * factory for creating the thread. Then, on the newly created thread the
* corresponding configuration options are set. * corresponding configuration options are set.
* *
* @param r the {@code Runnable} to be executed by the new thread * @param runnable the {@code Runnable} to be executed by the new thread
* @return the newly created thread * @return the newly created thread
*/ */
@Override @Override
public Thread newThread(final Runnable r) { public Thread newThread(final Runnable runnable) {
final Thread t = getWrappedFactory().newThread(r); final Thread thread = getWrappedFactory().newThread(runnable);
initializeThread(t); initializeThread(thread);
return t; return thread;
} }
/** /**
@ -306,11 +306,11 @@ public class BasicThreadFactory implements ThreadFactory {
* flag is set to <b>true</b> the new thread factory will create daemon * flag is set to <b>true</b> the new thread factory will create daemon
* threads. * threads.
* *
* @param f the value of the daemon flag * @param daemon the value of the daemon flag
* @return a reference to this {@code Builder} * @return a reference to this {@code Builder}
*/ */
public Builder daemon(final boolean f) { public Builder daemon(final boolean daemon) {
daemon = Boolean.valueOf(f); this.daemon = Boolean.valueOf(daemon);
return this; return this;
} }
@ -318,11 +318,11 @@ public class BasicThreadFactory implements ThreadFactory {
* Sets the priority for the threads created by the new {@code * Sets the priority for the threads created by the new {@code
* BasicThreadFactory}. * BasicThreadFactory}.
* *
* @param prio the priority * @param priority the priority
* @return a reference to this {@code Builder} * @return a reference to this {@code Builder}
*/ */
public Builder priority(final int prio) { public Builder priority(final int priority) {
priority = Integer.valueOf(prio); this.priority = Integer.valueOf(priority);
return this; return this;
} }