Skip to content

Commit 26eff79

Browse files
authored
2.x: Java 9 compatibility fixes (March 3) (#5153)
1 parent 19ba993 commit 26eff79

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

src/main/java/io/reactivex/internal/operators/flowable/BlockingFlowableIterable.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@
2727
import io.reactivex.internal.util.*;
2828

2929
public final class BlockingFlowableIterable<T> implements Iterable<T> {
30-
final Flowable<? extends T> source;
30+
final Flowable<T> source;
3131

3232
final int bufferSize;
3333

34-
public BlockingFlowableIterable(Flowable<? extends T> source, int bufferSize) {
34+
public BlockingFlowableIterable(Flowable<T> source, int bufferSize) {
3535
this.source = source;
3636
this.bufferSize = bufferSize;
3737
}

src/main/java/io/reactivex/internal/operators/flowable/BlockingFlowableMostRecent.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
*/
3030
public final class BlockingFlowableMostRecent<T> implements Iterable<T> {
3131

32-
final Flowable<? extends T> source;
32+
final Flowable<T> source;
3333

3434
final T initialValue;
3535

36-
public BlockingFlowableMostRecent(Flowable<? extends T> source, T initialValue) {
36+
public BlockingFlowableMostRecent(Flowable<T> source, T initialValue) {
3737
this.source = source;
3838
this.initialValue = initialValue;
3939
}

src/main/java/io/reactivex/internal/operators/flowable/FlowableCache.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ protected void subscribeActual(Subscriber<? super T> t) {
9393
*/
9494
static final class CacheState<T> extends LinkedArrayList implements FlowableSubscriber<T> {
9595
/** The source observable to connect to. */
96-
final Flowable<? extends T> source;
96+
final Flowable<T> source;
9797
/** Holds onto the subscriber connected to source. */
9898
final AtomicReference<Subscription> connection = new AtomicReference<Subscription>();
9999
/** Guarded by connection (not this). */
@@ -114,7 +114,7 @@ static final class CacheState<T> extends LinkedArrayList implements FlowableSubs
114114
boolean sourceDone;
115115

116116
@SuppressWarnings("unchecked")
117-
CacheState(Flowable<? extends T> source, int capacityHint) {
117+
CacheState(Flowable<T> source, int capacityHint) {
118118
super(capacityHint);
119119
this.source = source;
120120
this.subscribers = new AtomicReference<ReplaySubscription<T>[]>(EMPTY);

src/main/java/io/reactivex/internal/operators/flowable/FlowableRefCount.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* the value type
3333
*/
3434
public final class FlowableRefCount<T> extends AbstractFlowableWithUpstream<T, T> {
35-
final ConnectableFlowable<? extends T> source;
35+
final ConnectableFlowable<T> source;
3636
volatile CompositeDisposable baseDisposable = new CompositeDisposable();
3737
final AtomicInteger subscriptionCount = new AtomicInteger();
3838

src/test/java/io/reactivex/TestHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ public static void doubleOnSubscribe(MaybeObserver<?> subscriber) {
644644
* isCancelled properly before and after calling dispose.
645645
* @param source the source to test
646646
*/
647-
public static void checkDisposed(Flowable<?> source) {
647+
public static <T> void checkDisposed(Flowable<T> source) {
648648
final TestSubscriber<Object> ts = new TestSubscriber<Object>(0L);
649649
source.subscribe(new FlowableSubscriber<Object>() {
650650
@Override

0 commit comments

Comments
 (0)