Skip to content

Commit 29582f0

Browse files
plackemacherakarnokd
authored andcommitted
Remove unnecessary generic type parameters for delaySubscription methods in Single (#5511)
1 parent f51cd52 commit 29582f0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/io/reactivex/Single.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,15 +1752,14 @@ public final <U> Single<T> delaySubscription(Publisher<U> other) {
17521752
* <dd>{@code delaySubscription} does by default subscribe to the current Single
17531753
* on the {@code computation} {@link Scheduler} after the delay.</dd>
17541754
* </dl>
1755-
* @param <U> the element type of the other source
17561755
* @param time the time amount to wait with the subscription
17571756
* @param unit the time unit of the waiting
17581757
* @return the new Single instance
17591758
* @since 2.0
17601759
*/
17611760
@CheckReturnValue
17621761
@SchedulerSupport(SchedulerSupport.COMPUTATION)
1763-
public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
1762+
public final Single<T> delaySubscription(long time, TimeUnit unit) {
17641763
return delaySubscription(time, unit, Schedulers.computation());
17651764
}
17661765

@@ -1771,7 +1770,6 @@ public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
17711770
* <dd>{@code delaySubscription} does by default subscribe to the current Single
17721771
* on the {@link Scheduler} you provided, after the delay.</dd>
17731772
* </dl>
1774-
* @param <U> the element type of the other source
17751773
* @param time the time amount to wait with the subscription
17761774
* @param unit the time unit of the waiting
17771775
* @param scheduler the scheduler to wait on and subscribe on to the current Single
@@ -1780,7 +1778,7 @@ public final <U> Single<T> delaySubscription(long time, TimeUnit unit) {
17801778
*/
17811779
@CheckReturnValue
17821780
@SchedulerSupport(SchedulerSupport.CUSTOM)
1783-
public final <U> Single<T> delaySubscription(long time, TimeUnit unit, Scheduler scheduler) {
1781+
public final Single<T> delaySubscription(long time, TimeUnit unit, Scheduler scheduler) {
17841782
return delaySubscription(Observable.timer(time, unit, scheduler));
17851783
}
17861784

0 commit comments

Comments
 (0)