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

Reviewed-by: alanb
  • Loading branch information
jaikiran committed Jul 5, 2021
1 parent 76783cd commit fd4de1ed404640ee0e744f022bbfa89db200ef05
Showing 1 changed file with 2 additions and 3 deletions.
@@ -35,6 +35,7 @@
import java.util.*;

import jdk.internal.util.StaticProperty;
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 fd4de1e

Copy link

@openjdk-notifier openjdk-notifier bot commented on fd4de1e Jul 5, 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.