mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8233020: (fs) UnixFileSystemProvider should use StaticProperty.userDir().
Reviewed-by: alanb
This commit is contained in:
parent
76783cd8cb
commit
fd4de1ed40
1 changed files with 2 additions and 3 deletions
|
@ -35,6 +35,7 @@ import java.io.IOException;
|
|||
import java.io.FilePermission;
|
||||
import java.util.*;
|
||||
|
||||
import jdk.internal.util.StaticProperty;
|
||||
import sun.nio.ch.ThreadPool;
|
||||
import sun.security.util.SecurityConstants;
|
||||
import static sun.nio.fs.UnixNativeDispatcher.*;
|
||||
|
@ -47,13 +48,11 @@ import static sun.nio.fs.UnixConstants.*;
|
|||
public abstract class UnixFileSystemProvider
|
||||
extends AbstractFileSystemProvider
|
||||
{
|
||||
private static final String USER_DIR = "user.dir";
|
||||
private static final byte[] EMPTY_PATH = new byte[0];
|
||||
private final UnixFileSystem theFileSystem;
|
||||
|
||||
public UnixFileSystemProvider() {
|
||||
String userDir = System.getProperty(USER_DIR);
|
||||
theFileSystem = newFileSystem(userDir);
|
||||
theFileSystem = newFileSystem(StaticProperty.userDir());
|
||||
}
|
||||
|
||||
UnixFileSystem theFileSystem() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue