equal
deleted
inserted
replaced
44 class TempFileHelper { |
44 class TempFileHelper { |
45 private TempFileHelper() { } |
45 private TempFileHelper() { } |
46 |
46 |
47 // temporary directory location |
47 // temporary directory location |
48 private static final Path tmpdir = |
48 private static final Path tmpdir = |
49 Paths.get(GetPropertyAction.getProperty("java.io.tmpdir")); |
49 Paths.get(GetPropertyAction.privilegedGetProperty("java.io.tmpdir")); |
50 |
50 |
51 private static final boolean isPosix = |
51 private static final boolean isPosix = |
52 FileSystems.getDefault().supportedFileAttributeViews().contains("posix"); |
52 FileSystems.getDefault().supportedFileAttributeViews().contains("posix"); |
53 |
53 |
54 // file name generation, same as java.io.File for now |
54 // file name generation, same as java.io.File for now |