Skip to content
Permalink
Browse files
8233020: (fs) UnixFileSystemProvider should use StaticProperty.userDi…
…r().

Backport-of: fd4de1ed404640ee0e744f022bbfa89db200ef05
  • Loading branch information
akashche committed Nov 19, 2021
1 parent 0e896e7 commit fdcc3f17a4ae5b8a2af4ba66ebe66768b8de660c
Showing 1 changed file with 2 additions and 3 deletions.
@@ -35,6 +35,7 @@
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 @@
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() {

1 comment on commit fdcc3f1

@openjdk-notifier
Copy link

@openjdk-notifier openjdk-notifier bot commented on fdcc3f1 Nov 19, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.