Skip to content

Commit c9c772f

Browse files
JakeWhartonakarnokd
authored andcommitted
Reduce the visibility of internal methods. (#4128)
1 parent 68f85bf commit c9c772f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/reactivex/Completable.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ public static Completable merge(Publisher<? extends CompletableConsumable> sourc
369369
* @throws NullPointerException if sources is null
370370
* @throws IllegalArgumentException if maxConcurrency is less than 1
371371
*/
372-
protected static Completable merge0(Publisher<? extends CompletableConsumable> sources, int maxConcurrency, boolean delayErrors) {
372+
private static Completable merge0(Publisher<? extends CompletableConsumable> sources, int maxConcurrency, boolean delayErrors) {
373373
Objects.requireNonNull(sources, "sources is null");
374374
if (maxConcurrency < 1) {
375375
throw new IllegalArgumentException("maxConcurrency > 0 required but it was " + maxConcurrency);
@@ -469,7 +469,7 @@ public static Completable timer(final long delay, final TimeUnit unit, final Sch
469469
* @param ex the Throwable instance to use as cause, not null (not verified)
470470
* @return the created NullPointerException
471471
*/
472-
static NullPointerException toNpe(Throwable ex) {
472+
private static NullPointerException toNpe(Throwable ex) {
473473
NullPointerException npe = new NullPointerException("Actually not, but can't pass out an exception otherwise...");
474474
npe.initCause(ex);
475475
return npe;
@@ -671,7 +671,7 @@ public final Completable doOnError(Consumer<? super Throwable> onError) {
671671
* @return the new Completable instance
672672
*/
673673
@SchedulerSupport(SchedulerSupport.NONE)
674-
protected final Completable doOnLifecycle(
674+
private Completable doOnLifecycle(
675675
final Consumer<? super Disposable> onSubscribe,
676676
final Consumer<? super Throwable> onError,
677677
final Runnable onComplete,
@@ -1199,7 +1199,7 @@ public final Completable timeout(long timeout, TimeUnit unit, Scheduler schedule
11991199
* @throws NullPointerException if unit or scheduler
12001200
*/
12011201
@SchedulerSupport(SchedulerSupport.CUSTOM)
1202-
public final Completable timeout0(long timeout, TimeUnit unit, Scheduler scheduler, CompletableConsumable other) {
1202+
private Completable timeout0(long timeout, TimeUnit unit, Scheduler scheduler, CompletableConsumable other) {
12031203
Objects.requireNonNull(unit, "unit is null");
12041204
Objects.requireNonNull(scheduler, "scheduler is null");
12051205
return new CompletableTimeout(this, timeout, unit, scheduler, other);

0 commit comments

Comments
 (0)