From 0d7421752a365a7bb76d3ccd1b0585b72e97d910 Mon Sep 17 00:00:00 2001 From: Brian Burkhalter Date: Mon, 8 Feb 2016 10:46:42 -0800 Subject: [PATCH] 8064466: (fs spec) Files.readAttributes(Path, String, LinkOption...) not clear when called with zero attributes Change specification to indicate "one or more" instead of "zero or more" attributes. Reviewed-by: alanb --- jdk/src/java.base/share/classes/java/nio/file/Files.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.base/share/classes/java/nio/file/Files.java b/jdk/src/java.base/share/classes/java/nio/file/Files.java index 3fb7fe28c94..8f8a50434e7 100644 --- a/jdk/src/java.base/share/classes/java/nio/file/Files.java +++ b/jdk/src/java.base/share/classes/java/nio/file/Files.java @@ -1898,7 +1898,7 @@ public final class Files { * many file systems. * *

The attribute-list component is a comma separated list of - * zero or more names of attributes to read. If the list contains the value + * one or more names of attributes to read. If the list contains the value * {@code "*"} then all attributes are read. Attributes that are not supported * are ignored and will not be present in the returned map. It is * implementation specific if all attributes are read as an atomic operation @@ -1948,7 +1948,7 @@ public final class Files { * @throws UnsupportedOperationException * if the attribute view is not available * @throws IllegalArgumentException - * if no attributes are specified or an unrecognized attributes is + * if no attributes are specified or an unrecognized attribute is * specified * @throws IOException * if an I/O error occurs