8148821: (fs) Path.getParent() javadoc error
authorbpb
Wed, 03 Feb 2016 13:34:19 -0800
changeset 35703 0bcc18fb1c5e
parent 35702 5f4ccee7dfb9
child 35704 3751461bbb94
8148821: (fs) Path.getParent() javadoc error Summary: Change "If this path has one or more elements" to "If this path has more than one element." Reviewed-by: rriggs, alanb
jdk/src/java.base/share/classes/java/nio/file/Path.java
--- a/jdk/src/java.base/share/classes/java/nio/file/Path.java	Wed Feb 03 12:52:27 2016 -0800
+++ b/jdk/src/java.base/share/classes/java/nio/file/Path.java	Wed Feb 03 13:34:19 2016 -0800
@@ -150,7 +150,7 @@
      * #normalize normalize} method, to eliminate redundant names, for cases where
      * <em>shell-like</em> navigation is required.
      *
-     * <p> If this path has one or more elements, and no root component, then
+     * <p> If this path has more than one element, and no root component, then
      * this method is equivalent to evaluating the expression:
      * <blockquote><pre>
      * subpath(0,&nbsp;getNameCount()-1);