test/jdk/java/net/httpclient/http2/server/TestUtil.java
branchhttp-client-branch
changeset 56010 782b2f2d1e76
parent 48083 b1c1b4ef4be2
child 56300 13a2ec671e62
equal deleted inserted replaced
56009:cf8792f51dee 56010:782b2f2d1e76
    43     }
    43     }
    44 
    44 
    45     public static Path tempFile() {
    45     public static Path tempFile() {
    46         try {
    46         try {
    47             Path p = Files.createTempFile("foo", "test");
    47             Path p = Files.createTempFile("foo", "test");
    48             p.toFile().deleteOnExit();
       
    49             return p;
    48             return p;
    50         } catch (IOException e) {
    49         } catch (IOException e) {
    51             throw new UncheckedIOException(e);
    50             throw new UncheckedIOException(e);
    52         }
    51         }
    53     }
    52     }