Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary generic type parameters for delaySubscription methods in Single #5511

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions src/main/java/io/reactivex/Single.java
Original file line number Diff line number Diff line change
Expand Up @@ -1752,15 +1752,14 @@ public final <U> Single<T> delaySubscription(Publisher<U> other) {
* <dd>{@code delaySubscription} does by default subscribe to the current Single
* on the {@code computation} {@link Scheduler} after the delay.</dd>
* </dl>
* @param <U> the element type of the other source
* @param time the time amount to wait with the subscription
* @param unit the time unit of the waiting
* @return the new Single instance
* @since 2.0
*/
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.COMPUTATION)
public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
public final Single<T> delaySubscription(long time, TimeUnit unit) {
return delaySubscription(time, unit, Schedulers.computation());
}

Expand All @@ -1771,7 +1770,6 @@ public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
* <dd>{@code delaySubscription} does by default subscribe to the current Single
* on the {@link Scheduler} you provided, after the delay.</dd>
* </dl>
* @param <U> the element type of the other source
* @param time the time amount to wait with the subscription
* @param unit the time unit of the waiting
* @param scheduler the scheduler to wait on and subscribe on to the current Single
Expand All @@ -1780,7 +1778,7 @@ public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
*/
@CheckReturnValue
@SchedulerSupport(SchedulerSupport.CUSTOM)
public final <U> Single<T> delaySubscription(long time, TimeUnit unit, Scheduler scheduler) {
public final Single<T> delaySubscription(long time, TimeUnit unit, Scheduler scheduler) {
return delaySubscription(Observable.timer(time, unit, scheduler));
}

Expand Down