src/share/classes/java/nio/file/Files.java
Print this page
@@ -508,11 +508,11 @@
* Suppose we want to iterate over the files in a directory that are
* larger than 8K.
* <pre>
* DirectoryStream.Filter<Path> filter = new DirectoryStream.Filter<Path>() {
* public boolean accept(Path file) throws IOException {
- * return (Files.size(file) > 8192L);
+ * return (Files.size(file) > 8192L);
* }
* };
* Path dir = ...
* try (DirectoryStream<Path> stream = Files.newDirectoryStream(dir, filter)) {
* :
@@ -1590,11 +1590,11 @@
* Suppose we want read or set a file's ACL, if supported:
* <pre>
* Path path = ...
* AclFileAttributeView view = Files.getFileAttributeView(path, AclFileAttributeView.class);
* if (view != null) {
- * List<AclEntry> acl = view.getAcl();
+ * List<AclEntry> acl = view.getAcl();
* :
* }
* </pre>
*
*