RFR: 8347286: (fs) Remove some extensions from java/nio/file/Files/probeContentType/Basic.java
Alan Bateman
alanb at openjdk.org
Tue Jan 14 07:18:41 UTC 2025
On Mon, 13 Jan 2025 19:18:20 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Remove testing on Windows of file extensions which do not consistently map to the same content type across different versions of Windows.
Marked as reviewed by alanb (Reviewer).
test/jdk/java/nio/file/Files/probeContentType/Basic.java line 196:
> 194: if (OperatingSystem.isWindows() &&
> 195: (StaticProperty.osName().matches("^.*[11|2025]$") ||
> 196: new OSVersion(10, 0).compareTo(OSVersion.current()) > 0)) {
I assume the import of OSVersion isn't needed now.
-------------
PR Review: https://git.openjdk.org/jdk/pull/23085#pullrequestreview-2548958623
PR Review Comment: https://git.openjdk.org/jdk/pull/23085#discussion_r1914349985
More information about the nio-dev
mailing list