On Wed, 3 Feb 2021 12:11:40 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> Method createStrokedShape(Shape) for java.awt.BasicStroke class throws 
> NullPointerException when passed a null object reference for a input 
> parameter but it's not specified in the spec.
> Updated spec to illustrate this.

src/java.desktop/share/classes/java/awt/BasicStroke.java line 297:

> 295:      * @param s the {@code Shape} boundary be stroked
> 296:      * @return the {@code Shape} of the stroked outline.
> 297:      * @exception NullPointerException if {@code Shape} is {@code null}

We use "@throws" in the new code.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2377

Reply via email to