Return-Path: X-Original-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-oak-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 20BADEAD2 for ; Wed, 30 Jan 2013 19:44:20 +0000 (UTC) Received: (qmail 63635 invoked by uid 500); 30 Jan 2013 19:44:20 -0000 Delivered-To: apmail-jackrabbit-oak-commits-archive@jackrabbit.apache.org Received: (qmail 63601 invoked by uid 500); 30 Jan 2013 19:44:20 -0000 Mailing-List: contact oak-commits-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: oak-dev@jackrabbit.apache.org Delivered-To: mailing list oak-commits@jackrabbit.apache.org Received: (qmail 63591 invoked by uid 99); 30 Jan 2013 19:44:20 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2013 19:44:20 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jan 2013 19:44:17 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 0886A2388A38; Wed, 30 Jan 2013 19:43:58 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1440613 - /jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java Date: Wed, 30 Jan 2013 19:43:57 -0000 To: oak-commits@jackrabbit.apache.org From: angela@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130130194358.0886A2388A38@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: angela Date: Wed Jan 30 19:43:57 2013 New Revision: 1440613 URL: http://svn.apache.org/viewvc?rev=1440613&view=rev Log: minor improvement and javadoc Modified: jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java Modified: jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java URL: http://svn.apache.org/viewvc/jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java?rev=1440613&r1=1440612&r2=1440613&view=diff ============================================================================== --- jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java (original) +++ jackrabbit/oak/trunk/oak-commons/src/main/java/org/apache/jackrabbit/oak/commons/PathUtils.java Wed Jan 30 19:43:57 2013 @@ -28,7 +28,7 @@ import javax.annotation.Nonnull; * takes place within this function, so when the parameter is an illegal path, * the the result of this method is undefined. */ -public class PathUtils { +public final class PathUtils { private PathUtils() { // utility class @@ -101,6 +101,8 @@ public class PathUtils { * If nth <= 0, the path argument is returned as is. * * @param path the path + * @param nth indicates the ancestor level for which the path should be + * calculated. * @return the ancestor path */ @Nonnull @@ -236,7 +238,7 @@ public class PathUtils { /** * Concatenate path elements. * - * @param parentPath the parent path + * @param parentPath the parent path * @param relativePaths the relative path elements to add * @return the concatenated path */ @@ -268,7 +270,7 @@ public class PathUtils { * Concatenate path elements. * * @param parentPath the parent path - * @param subPath the subPath path to add + * @param subPath the subPath path to add * @return the concatenated path */ @Nonnull @@ -295,7 +297,7 @@ public class PathUtils { * Check if a path is a (direct or indirect) ancestor of another path. * * @param ancestor the ancestor path - * @param path the potential offspring path + * @param path the potential offspring path * @return true if the path is an offspring of the ancestor */ public static boolean isAncestor(String ancestor, String path) { @@ -320,7 +322,7 @@ public class PathUtils { * holds. * * @param parentPath parent pth - * @param path path to relativize + * @param path path to relativize * @return relativized path */ @Nonnull @@ -345,7 +347,7 @@ public class PathUtils { /** * Get the index of the next slash. * - * @param path the path + * @param path the path * @param index the starting index * @return the index of the next slash (possibly the starting index), or -1 * if not found