[OpenJDK 2D-Dev] RFR: 6211257: BasicStroke.createStrokedShape(Shape): NPE is not specified [v2]

Prasanta Sadhukhan psadhukhan at openjdk.java.net
Fri Feb 5 04:14:40 UTC 2021


On Wed, 3 Feb 2021 23:34:01 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:

>> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Doc change to @throws
>
> 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.

any feedback on this?

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

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


More information about the 2d-dev mailing list