> For tests of the `java.io` package, instead of doing this > > public static void main(String[] args) throws Exception { > if (File.separatorChar != '\') { > /* This test is only valid on win32 systems */ > return; > } > > do this > > @requires (os.family == "windows")
Brian Burkhalter has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains two commits: - Merge - 8355443: [java.io] Use @requires tag instead of exiting based on File.separatorChar value ------------- Changes: https://git.openjdk.org/jdk/pull/24838/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24838&range=01 Stats: 61 lines in 10 files changed: 10 ins; 35 del; 16 mod Patch: https://git.openjdk.org/jdk/pull/24838.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/24838/head:pull/24838 PR: https://git.openjdk.org/jdk/pull/24838