[OpenJDK 2D-Dev] RFR: 8261200: Some code in the ICC_Profile may not close file streams properly
Alexander Zvegintsev
azvegint at openjdk.java.net
Sat Feb 6 01:26:39 UTC 2021
On Fri, 5 Feb 2021 04:05:12 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
> In a few places where we use streams the try/with/res blocks are added.
test/jdk/java/awt/color/ICC_Profile/WriteProfileToFile.java line 83:
> 81: }
> 82: }
> 83: }
Just a matter of taste, but if you OK with not elaborating why arrays differs, the method may be shortened with `Arrays.equals()` usage.
-------------
PR: https://git.openjdk.java.net/jdk/pull/2421
More information about the 2d-dev
mailing list