@@ -35,7 +35,7 @@ public static <T> org.reactivestreams.Publisher<T> toReactiveStreams(
35
35
throw new NullPointerException ("flowPublisher" );
36
36
}
37
37
if (flowPublisher instanceof org .reactivestreams .Publisher ) {
38
- return (org .reactivestreams .Publisher <T >)flowPublisher ;
38
+ return (org .reactivestreams .Publisher <T >) flowPublisher ;
39
39
}
40
40
if (flowPublisher instanceof FlowPublisherFromReactive ) {
41
41
return (org .reactivestreams .Publisher <T >)(((FlowPublisherFromReactive <T >)flowPublisher ).reactiveStreams );
@@ -57,7 +57,7 @@ public static <T> Flow.Publisher<T> toFlow(
57
57
throw new NullPointerException ("reactiveStreamsPublisher" );
58
58
}
59
59
if (reactiveStreamsPublisher instanceof Flow .Publisher ) {
60
- return (Flow .Publisher <T >)reactiveStreamsPublisher ;
60
+ return (Flow .Publisher <T >) reactiveStreamsPublisher ;
61
61
}
62
62
if (reactiveStreamsPublisher instanceof ReactivePublisherFromFlow ) {
63
63
return (Flow .Publisher <T >)(((ReactivePublisherFromFlow <T >)reactiveStreamsPublisher ).flow );
@@ -80,7 +80,7 @@ public static <T, U> org.reactivestreams.Processor<T, U> toReactiveStreams(
80
80
throw new NullPointerException ("flowProcessor" );
81
81
}
82
82
if (flowProcessor instanceof org .reactivestreams .Processor ) {
83
- return (org .reactivestreams .Processor <T , U >)flowProcessor ;
83
+ return (org .reactivestreams .Processor <T , U >) flowProcessor ;
84
84
}
85
85
if (flowProcessor instanceof FlowToReactiveProcessor ) {
86
86
return (org .reactivestreams .Processor <T , U >)(((FlowToReactiveProcessor <T , U >)flowProcessor ).reactiveStreams );
@@ -103,7 +103,7 @@ public static <T, U> Flow.Processor<T, U> toFlow(
103
103
throw new NullPointerException ("reactiveStreamsProcessor" );
104
104
}
105
105
if (reactiveStreamsProcessor instanceof Flow .Processor ) {
106
- return (Flow .Processor <T , U >)reactiveStreamsProcessor ;
106
+ return (Flow .Processor <T , U >) reactiveStreamsProcessor ;
107
107
}
108
108
if (reactiveStreamsProcessor instanceof ReactiveToFlowProcessor ) {
109
109
return (Flow .Processor <T , U >)(((ReactiveToFlowProcessor <T , U >)reactiveStreamsProcessor ).flow );
@@ -191,6 +191,7 @@ static final class FlowToReactiveSubscriber<T>
191
191
private final org .reactivestreams .Subscriber <? super T > reactiveStreams ;
192
192
193
193
public FlowToReactiveSubscriber (org .reactivestreams .Subscriber <? super T > reactive ) {
194
+ if (reactive == null ) throw null ;
194
195
this .reactiveStreams = reactive ;
195
196
}
196
197
@@ -260,6 +261,7 @@ static final class ReactiveToFlowProcessor<T, U>
260
261
final Flow .Processor <? super T , ? extends U > flow ;
261
262
262
263
public ReactiveToFlowProcessor (Flow .Processor <? super T , ? extends U > flow ) {
264
+ if (flow == null ) throw null ;
263
265
this .flow = flow ;
264
266
}
265
267
0 commit comments