Refactor remove the test logic for Windows OS and replace with jtreg check for os
------------- Commit messages: - 8360408: [TEST] Use @requires tag instead of exiting based on "os.name" property value for sun/net/www/protocol/file/FileURLTest.java Changes: https://git.openjdk.org/jdk/pull/26537/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26537&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8360408 Stats: 6 lines in 1 file changed: 1 ins; 4 del; 1 mod Patch: https://git.openjdk.org/jdk/pull/26537.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/26537/head:pull/26537 PR: https://git.openjdk.org/jdk/pull/26537