Don't need internal ivar name for a boolean to carry a "Flag" postfix.

This commit is contained in:
Gary Gregory 2017-12-21 08:46:30 -07:00
parent 4f13c68918
commit 49a876cb1c
1 changed files with 4 additions and 4 deletions

View File

@ -122,7 +122,7 @@ private BasicThreadFactory(final Builder builder) {
namingPattern = builder.namingPattern;
priority = builder.priority;
daemonFlag = builder.daemonFlag;
daemonFlag = builder.daemon;
uncaughtExceptionHandler = builder.exceptionHandler;
threadCounter = new AtomicLong();
@ -267,7 +267,7 @@ public static class Builder
private Integer priority;
/** The daemon flag. */
private Boolean daemonFlag;
private Boolean daemon;
/**
* Sets the {@code ThreadFactory} to be wrapped by the new {@code
@ -310,7 +310,7 @@ public Builder namingPattern(final String pattern) {
* @return a reference to this {@code Builder}
*/
public Builder daemon(final boolean f) {
daemonFlag = Boolean.valueOf(f);
daemon = Boolean.valueOf(f);
return this;
}
@ -354,7 +354,7 @@ public void reset() {
exceptionHandler = null;
namingPattern = null;
priority = null;
daemonFlag = null;
daemon = null;
}
/**