< prev index next >

src/java.base/windows/classes/java/io/WinNTFileSystem.java

Print this page
@@ -28,11 +28,10 @@
  import java.nio.file.InvalidPathException;
  import java.nio.file.Path;
  import java.util.BitSet;
  import java.util.Locale;
  import java.util.Properties;
- import jdk.internal.misc.Blocker;
  import sun.security.action.GetPropertyAction;
  
  /**
   * Unicode-aware FileSystem for Windows NT/2000.
   *

@@ -489,155 +488,90 @@
              char c = path.charAt(0);
              if ((c >= 'A') && (c <= 'Z'))
                  return path;
              return "" + ((char) (c-32)) + ':' + '\\';
          }
-         long comp = Blocker.begin();
-         try {
-             return canonicalize0(path);
-         } finally {
-             Blocker.end(comp);
-         }
+         return canonicalize0(path);
      }
  
      private native String canonicalize0(String path)
              throws IOException;
  
  
      /* -- Attribute accessors -- */
  
      @Override
      public int getBooleanAttributes(File f) {
-         long comp = Blocker.begin();
-         try {
-             return getBooleanAttributes0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return getBooleanAttributes0(f);
      }
      private native int getBooleanAttributes0(File f);
  
      @Override
      public boolean checkAccess(File f, int access) {
-         long comp = Blocker.begin();
-         try {
-             return checkAccess0(f, access);
-         } finally {
-             Blocker.end(comp);
-         }
+         return checkAccess0(f, access);
      }
      private native boolean checkAccess0(File f, int access);
  
      @Override
      public long getLastModifiedTime(File f) {
-         long comp = Blocker.begin();
-         try {
-             return getLastModifiedTime0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return getLastModifiedTime0(f);
      }
      private native long getLastModifiedTime0(File f);
  
      @Override
      public long getLength(File f) {
-         long comp = Blocker.begin();
-         try {
-             return getLength0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return getLength0(f);
      }
      private native long getLength0(File f);
  
      @Override
      public boolean setPermission(File f, int access, boolean enable, boolean owneronly) {
-         long comp = Blocker.begin();
-         try {
-             return setPermission0(f, access, enable, owneronly);
-         } finally {
-             Blocker.end(comp);
-         }
+         return setPermission0(f, access, enable, owneronly);
      }
      private native boolean setPermission0(File f, int access, boolean enable, boolean owneronly);
  
      /* -- File operations -- */
  
      @Override
      public boolean createFileExclusively(String path) throws IOException {
-         long comp = Blocker.begin();
-         try {
-             return createFileExclusively0(path);
-         } finally {
-             Blocker.end(comp);
-         }
+         return createFileExclusively0(path);
      }
      private native boolean createFileExclusively0(String path) throws IOException;
  
      @Override
      public String[] list(File f) {
-         long comp = Blocker.begin();
-         try {
-             return list0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return list0(f);
      }
      private native String[] list0(File f);
  
      @Override
      public boolean createDirectory(File f) {
-         long comp = Blocker.begin();
-         try {
-             return createDirectory0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return createDirectory0(f);
      }
      private native boolean createDirectory0(File f);
  
      @Override
      public boolean setLastModifiedTime(File f, long time) {
-         long comp = Blocker.begin();
-         try {
-             return setLastModifiedTime0(f, time);
-         } finally {
-             Blocker.end(comp);
-         }
+         return setLastModifiedTime0(f, time);
      }
      private native boolean setLastModifiedTime0(File f, long time);
  
      @Override
      public boolean setReadOnly(File f) {
-         long comp = Blocker.begin();
-         try {
-             return setReadOnly0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return setReadOnly0(f);
      }
      private native boolean setReadOnly0(File f);
  
      @Override
      public boolean delete(File f) {
-         long comp = Blocker.begin();
-         try {
-             return delete0(f);
-         } finally {
-             Blocker.end(comp);
-         }
+         return delete0(f);
      }
      private native boolean delete0(File f);
  
      @Override
      public boolean rename(File f1, File f2) {
-         long comp = Blocker.begin();
-         try {
-             return rename0(f1, f2);
-         } finally {
-             Blocker.end(comp);
-         }
+         return rename0(f1, f2);
      }
      private native boolean rename0(File f1, File f2);
  
      /* -- Filesystem interface -- */
  
< prev index next >