[OpenJDK 2D-Dev] RFR: 6206189: Graphics2D.clip specifies incorrectly that a 'null' is a valid value for this method [v5]
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Thu Feb 11 15:44:57 UTC 2021
> The API doc for Graphics2D.clip(shape s) claims that passing a null argument would actually clear the existing clipping area, which is incorrect.
> This statement is applicable only to G2D.setClip() and not for the clip() method. G2D.clip() would throw a NullPointerException when it encounters a null argument.
> Updated spec to rectify this.
Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
Review comment fix. Test updated
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/2476/files
- new: https://git.openjdk.java.net/jdk/pull/2476/files/e4053de8..51fbe247
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=2476&range=04
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=2476&range=03-04
Stats: 5 lines in 3 files changed: 2 ins; 1 del; 2 mod
Patch: https://git.openjdk.java.net/jdk/pull/2476.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/2476/head:pull/2476
PR: https://git.openjdk.java.net/jdk/pull/2476
More information about the 2d-dev
mailing list