From 0ee02dbd7146a8518fa4c6ebe9aadc71ecbaccd3 Mon Sep 17 00:00:00 2001 From: Brian Burkhalter Date: Wed, 3 Feb 2016 13:34:19 -0800 Subject: [PATCH] 8148821: (fs) Path.getParent() javadoc error 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jdk/src/java.base/share/classes/java/nio/file/Path.java b/jdk/src/java.base/share/classes/java/nio/file/Path.java index ac497c3c0cf..e7307e65640 100644 --- a/jdk/src/java.base/share/classes/java/nio/file/Path.java +++ b/jdk/src/java.base/share/classes/java/nio/file/Path.java @@ -150,7 +150,7 @@ public interface Path * #normalize normalize} method, to eliminate redundant names, for cases where * shell-like navigation is required. * - *

If this path has one or more elements, and no root component, then + *

If this path has more than one element, and no root component, then * this method is equivalent to evaluating the expression: *

      * subpath(0, getNameCount()-1);