8254262: jdk.test.lib.Utils::createTemp* don't pass attrs
Reviewed-by: shade
This commit is contained in:
parent
8c0d3d754b
commit
5351ba6cfa
@ -802,7 +802,7 @@ public final class Utils {
|
||||
*/
|
||||
public static Path createTempFile(String prefix, String suffix, FileAttribute<?>... attrs) throws IOException {
|
||||
Path dir = Paths.get(System.getProperty("user.dir", "."));
|
||||
return Files.createTempFile(dir, prefix, suffix);
|
||||
return Files.createTempFile(dir, prefix, suffix, attrs);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -822,6 +822,6 @@ public final class Utils {
|
||||
*/
|
||||
public static Path createTempDirectory(String prefix, FileAttribute<?>... attrs) throws IOException {
|
||||
Path dir = Paths.get(System.getProperty("user.dir", "."));
|
||||
return Files.createTempDirectory(dir, prefix);
|
||||
return Files.createTempDirectory(dir, prefix, attrs);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user