src/share/classes/jdk/nio/zipfs/ZipFileSystemProvider.java

Print this page

        

@@ -269,10 +269,11 @@
     {
         return toZipPath(path).newOutputStream(options);
     }
 
     @Override
+    @SuppressWarnings("unchecked") // Cast to A
     public <A extends BasicFileAttributes> A
         readAttributes(Path path, Class<A> type, LinkOption... options)
         throws IOException
     {
         if (type == BasicFileAttributes.class || type == ZipFileAttributes.class)