Skip to content

Commit 54a8975

Browse files
committed
wip
1 parent d535fa3 commit 54a8975

File tree

13 files changed

+180
-544
lines changed

13 files changed

+180
-544
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ test-results
2626
test-tmp
2727
*.class
2828
gradle.properties
29+
*.orig

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

+6-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public static <T> org.reactivestreams.Publisher<T> toReactiveStreams(
3535
throw new NullPointerException("flowPublisher");
3636
}
3737
if (flowPublisher instanceof org.reactivestreams.Publisher) {
38-
return (org.reactivestreams.Publisher<T>)flowPublisher;
38+
return (org.reactivestreams.Publisher<T>) flowPublisher;
3939
}
4040
if (flowPublisher instanceof FlowPublisherFromReactive) {
4141
return (org.reactivestreams.Publisher<T>)(((FlowPublisherFromReactive<T>)flowPublisher).reactiveStreams);
@@ -57,7 +57,7 @@ public static <T> Flow.Publisher<T> toFlow(
5757
throw new NullPointerException("reactiveStreamsPublisher");
5858
}
5959
if (reactiveStreamsPublisher instanceof Flow.Publisher) {
60-
return (Flow.Publisher<T>)reactiveStreamsPublisher;
60+
return (Flow.Publisher<T>) reactiveStreamsPublisher;
6161
}
6262
if (reactiveStreamsPublisher instanceof ReactivePublisherFromFlow) {
6363
return (Flow.Publisher<T>)(((ReactivePublisherFromFlow<T>)reactiveStreamsPublisher).flow);
@@ -80,7 +80,7 @@ public static <T, U> org.reactivestreams.Processor<T, U> toReactiveStreams(
8080
throw new NullPointerException("flowProcessor");
8181
}
8282
if (flowProcessor instanceof org.reactivestreams.Processor) {
83-
return (org.reactivestreams.Processor<T, U>)flowProcessor;
83+
return (org.reactivestreams.Processor<T, U>) flowProcessor;
8484
}
8585
if (flowProcessor instanceof FlowToReactiveProcessor) {
8686
return (org.reactivestreams.Processor<T, U>)(((FlowToReactiveProcessor<T, U>)flowProcessor).reactiveStreams);
@@ -103,7 +103,7 @@ public static <T, U> Flow.Processor<T, U> toFlow(
103103
throw new NullPointerException("reactiveStreamsProcessor");
104104
}
105105
if (reactiveStreamsProcessor instanceof Flow.Processor) {
106-
return (Flow.Processor<T, U>)reactiveStreamsProcessor;
106+
return (Flow.Processor<T, U>) reactiveStreamsProcessor;
107107
}
108108
if (reactiveStreamsProcessor instanceof ReactiveToFlowProcessor) {
109109
return (Flow.Processor<T, U>)(((ReactiveToFlowProcessor<T, U>)reactiveStreamsProcessor).flow);
@@ -191,6 +191,7 @@ static final class FlowToReactiveSubscriber<T>
191191
private final org.reactivestreams.Subscriber<? super T> reactiveStreams;
192192

193193
public FlowToReactiveSubscriber(org.reactivestreams.Subscriber<? super T> reactive) {
194+
if (reactive == null) throw null;
194195
this.reactiveStreams = reactive;
195196
}
196197

@@ -260,6 +261,7 @@ static final class ReactiveToFlowProcessor<T, U>
260261
final Flow.Processor<? super T, ? extends U> flow;
261262

262263
public ReactiveToFlowProcessor(Flow.Processor<? super T, ? extends U> flow) {
264+
if (flow == null) throw null;
263265
this.flow = flow;
264266
}
265267

0 commit comments

Comments
 (0)