src/share/classes/java/nio/channels/AsynchronousFileChannel.java

Print this page

        

*** 246,256 **** { FileSystemProvider provider = file.getFileSystem().provider(); return provider.newAsynchronousFileChannel(file, options, executor, attrs); } ! @SuppressWarnings({ "unchecked", "rawtypes" }) // generic array construction private static final FileAttribute<?>[] NO_ATTRIBUTES = new FileAttribute[0]; /** * Opens or creates a file for reading and/or writing, returning an * asynchronous file channel to access the file. --- 246,256 ---- { FileSystemProvider provider = file.getFileSystem().provider(); return provider.newAsynchronousFileChannel(file, options, executor, attrs); } ! @SuppressWarnings({"unchecked", "rawtypes"}) // generic array construction private static final FileAttribute<?>[] NO_ATTRIBUTES = new FileAttribute[0]; /** * Opens or creates a file for reading and/or writing, returning an * asynchronous file channel to access the file.