We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1029b4 commit e5c4a9eCopy full SHA for e5c4a9e
src/main/java/io/reactivex/internal/schedulers/SingleScheduler.java
@@ -15,7 +15,6 @@
15
import io.reactivex.Scheduler;
16
import io.reactivex.disposables.*;
17
import io.reactivex.internal.disposables.EmptyDisposable;
18
-import io.reactivex.internal.functions.ObjectHelper;
19
import io.reactivex.plugins.RxJavaPlugins;
20
21
import java.util.concurrent.*;
@@ -57,7 +56,7 @@ public SingleScheduler() {
57
56
* system properties for configuring new thread creation. Cannot be null.
58
*/
59
public SingleScheduler(ThreadFactory threadFactory) {
60
- this.threadFactory = ObjectHelper.requireNonNull(threadFactory, "threadFactory was null");
+ this.threadFactory = threadFactory;
61
executor.lazySet(createExecutor(threadFactory));
62
}
63
0 commit comments