jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ang...@apache.org
Subject svn commit: r415990 - /jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java
Date Wed, 21 Jun 2006 14:03:09 GMT
Author: angela
Date: Wed Jun 21 07:03:08 2006
New Revision: 415990

URL: http://svn.apache.org/viewvc?rev=415990&view=rev
Log:
Arrangement of methods (move getName(String, char) below getName(String)

Modified:
    jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java

Modified: jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java?rev=415990&r1=415989&r2=415990&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java (original)
+++ jackrabbit/trunk/jackrabbit/src/main/java/org/apache/jackrabbit/util/Text.java Wed Jun
21 07:03:08 2006
@@ -520,6 +520,18 @@
     }
 
     /**
+     * Returns the name part of the path, delimited by the given <code>delim</code>
+     *
+     * @param path the path
+     * @param delim the delimiter
+     * @return the name part
+     */
+    public static String getName(String path, char delim) {
+        int pos = path.lastIndexOf(delim);
+        return pos >= 0 ? path.substring(pos + 1) : "";
+    }
+
+    /**
      * Returns the namespace prefix of the given <code>qname</code>. If the
      * prefix is missing, an empty string is returned. Please note, that this
      * method does not validate the name or prefix.
@@ -554,18 +566,6 @@
     public static String getLocalName(String qname) {
         int pos = qname.indexOf(':');
         return pos >=0 ? qname.substring(pos+1) : qname;
-    }
-
-    /**
-     * Returns the name part of the path, delimited by the given <code>delim</code>
-     *
-     * @param path the path
-     * @param delim the delimiter
-     * @return the name part
-     */
-    public static String getName(String path, char delim) {
-        int pos = path.lastIndexOf(delim);
-        return pos >= 0 ? path.substring(pos + 1) : "";
     }
 
     /**



Mime
View raw message