Skip to content

Commit 6a07583

Browse files
committed
Fix java 6 syntax
1 parent cf24658 commit 6a07583

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

flow-bridge/src/main/java/org/reactivestreams/ReactiveFlowBridge.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public static <T> org.reactivestreams.Publisher<T> toReactive(
2929
if (flowPublisher instanceof FlowPublisherFromReactive) {
3030
return (org.reactivestreams.Publisher<T>)(((FlowPublisherFromReactive<T>)flowPublisher).reactive);
3131
}
32-
return new ReactivePublisherFromFlow<>(flowPublisher);
32+
return new ReactivePublisherFromFlow<T>(flowPublisher);
3333
}
3434

3535
/**
@@ -49,7 +49,7 @@ public static <T> Flow.Publisher<T> toFlow(
4949
if (reactivePublisher instanceof ReactivePublisherFromFlow) {
5050
return (Flow.Publisher<T>)(((ReactivePublisherFromFlow<T>)reactivePublisher).flow);
5151
}
52-
return new FlowPublisherFromReactive<>(reactivePublisher);
52+
return new FlowPublisherFromReactive<T>(reactivePublisher);
5353
}
5454

5555
/**
@@ -70,7 +70,7 @@ public static <T, U> org.reactivestreams.Processor<T, U> toReactive(
7070
if (flowProcessor instanceof FlowToReactiveProcessor) {
7171
return (org.reactivestreams.Processor<T, U>)(((FlowToReactiveProcessor<T, U>)flowProcessor).reactive);
7272
}
73-
return new ReactiveToFlowProcessor<>(flowProcessor);
73+
return new ReactiveToFlowProcessor<T, U>(flowProcessor);
7474
}
7575

7676
/**
@@ -91,7 +91,7 @@ public static <T, U> Flow.Processor<T, U> toFlow(
9191
if (reactiveProcessor instanceof ReactiveToFlowProcessor) {
9292
return (Flow.Processor<T, U>)(((ReactiveToFlowProcessor<T, U>)reactiveProcessor).flow);
9393
}
94-
return new FlowToReactiveProcessor<>(reactiveProcessor);
94+
return new FlowToReactiveProcessor<T, U>(reactiveProcessor);
9595
}
9696

9797

@@ -303,7 +303,7 @@ public void onComplete() {
303303

304304
@Override
305305
public void subscribe(org.reactivestreams.Subscriber<? super U> s) {
306-
flow.subscribe(new FlowToReactiveSubscriber<>(s));
306+
flow.subscribe(new FlowToReactiveSubscriber<U>(s));
307307
}
308308
}
309309

@@ -342,7 +342,7 @@ public void onComplete() {
342342

343343
@Override
344344
public void subscribe(Flow.Subscriber<? super U> s) {
345-
reactive.subscribe(new ReactiveToFlowSubscriber<>(s));
345+
reactive.subscribe(new ReactiveToFlowSubscriber<U>(s));
346346
}
347347
}
348348

@@ -360,7 +360,7 @@ public ReactivePublisherFromFlow(Flow.Publisher<? extends T> flowPublisher) {
360360

361361
@Override
362362
public void subscribe(org.reactivestreams.Subscriber<? super T> reactive) {
363-
flow.subscribe(new FlowToReactiveSubscriber<>(reactive));
363+
flow.subscribe(new FlowToReactiveSubscriber<T>(reactive));
364364
}
365365
}
366366

@@ -378,7 +378,7 @@ public FlowPublisherFromReactive(org.reactivestreams.Publisher<? extends T> reac
378378

379379
@Override
380380
public void subscribe(Flow.Subscriber<? super T> flow) {
381-
reactive.subscribe(new ReactiveToFlowSubscriber<>(flow));
381+
reactive.subscribe(new ReactiveToFlowSubscriber<T>(flow));
382382
}
383383
}
384384

0 commit comments

Comments
 (0)