RFR 8193698: Null handling in BodyPublisher, BodyHandler, and BodySubscriber convenience static factory methods

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

RFR 8193698: Null handling in BodyPublisher, BodyHandler, and BodySubscriber convenience static factory methods

Chris Hegarty
The HTTP Client API specifies that a NullPointerException will
be thrown when null is passed as an argument, expect where
explicitly specified. This issue adds correct null arg checking
where necessary, which is needed for spec conformance.

http://cr.openjdk.java.net/~chegar/8193698/

-Chris.

[1] https://bugs.openjdk.java.net/browse/JDK-8193698
Reply | Threaded
Open this post in threaded view
|

Re: RFR 8193698: Null handling in BodyPublisher, BodyHandler, and BodySubscriber convenience static factory methods

Daniel Fuchs

Looks good to me Chris!

-- daniel

On 18/12/2017 13:18, Chris Hegarty wrote:

> The HTTP Client API specifies that a NullPointerException will
> be thrown when null is passed as an argument, expect where
> explicitly specified. This issue adds correct null arg checking
> where necessary, which is needed for spec conformance.
>
> http://cr.openjdk.java.net/~chegar/8193698/
>
> -Chris.
>
> [1] https://bugs.openjdk.java.net/browse/JDK-8193698