< prev index next >

src/java.base/unix/classes/sun/nio/fs/DefaultFileSystemProvider.java

Print this page

        

@@ -42,11 +42,13 @@
             c = (Class<FileSystemProvider>)Class.forName(cn);
         } catch (ClassNotFoundException x) {
             throw new AssertionError(x);
         }
         try {
-            return c.newInstance();
+            @SuppressWarnings("deprecation")
+            FileSystemProvider result = c.newInstance();
+            return result;
         } catch (IllegalAccessException | InstantiationException x) {
             throw new AssertionError(x);
         }
     }
 
< prev index next >