Skip to content

Commit 118f405

Browse files
authored
3.x: Fix type inference problem when compiling with newer JDKs (#6682)
1 parent c1a919c commit 118f405

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/test/java/io/reactivex/rxjava3/internal/operators/flowable/FlowableGroupByTest.java

+7-6
Original file line numberDiff line numberDiff line change
@@ -2341,20 +2341,21 @@ public void fusedNoConcurrentCleanDueToCancel() {
23412341
try {
23422342
final PublishProcessor<Integer> pp = PublishProcessor.create();
23432343

2344-
final AtomicReference<QueueSubscription<GroupedFlowable<Object, Integer>>> qs = new AtomicReference<QueueSubscription<GroupedFlowable<Object, Integer>>>();
2344+
final AtomicReference<QueueSubscription<GroupedFlowable<Integer, Integer>>> qs =
2345+
new AtomicReference<QueueSubscription<GroupedFlowable<Integer, Integer>>>();
23452346

23462347
final TestSubscriber<Integer> ts2 = new TestSubscriber<Integer>();
23472348

2348-
pp.groupBy(Functions.identity(), Functions.<Integer>identity(), false, 4)
2349-
.subscribe(new FlowableSubscriber<GroupedFlowable<Object, Integer>>() {
2349+
pp.groupBy(Functions.<Integer>identity(), Functions.<Integer>identity(), false, 4)
2350+
.subscribe(new FlowableSubscriber<GroupedFlowable<Integer, Integer>>() {
23502351

23512352
boolean once;
23522353

23532354
@Override
2354-
public void onNext(GroupedFlowable<Object, Integer> g) {
2355+
public void onNext(GroupedFlowable<Integer, Integer> g) {
23552356
if (!once) {
23562357
try {
2357-
GroupedFlowable<Object, Integer> t = qs.get().poll();
2358+
GroupedFlowable<Integer, Integer> t = qs.get().poll();
23582359
if (t != null) {
23592360
once = true;
23602361
t.subscribe(ts2);
@@ -2376,7 +2377,7 @@ public void onComplete() {
23762377
@Override
23772378
public void onSubscribe(Subscription s) {
23782379
@SuppressWarnings("unchecked")
2379-
QueueSubscription<GroupedFlowable<Object, Integer>> q = (QueueSubscription<GroupedFlowable<Object, Integer>>)s;
2380+
QueueSubscription<GroupedFlowable<Integer, Integer>> q = (QueueSubscription<GroupedFlowable<Integer, Integer>>)s;
23802381
qs.set(q);
23812382
q.requestFusion(QueueFuseable.ANY);
23822383
q.request(1);

0 commit comments

Comments
 (0)