Don't need internal ivar name for a boolean to carry a "Flag" postfix.
This commit is contained in:
parent
4f13c68918
commit
49a876cb1c
|
@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue