commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1089734 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Thu, 07 Apr 2011 04:37:52 GMT
Author: bayard
Date: Thu Apr  7 04:37:52 2011
New Revision: 1089734

URL: http://svn.apache.org/viewvc?rev=1089734&view=rev
Log:
Adding javadoc for the new regionMatchesSequence method

Modified:
    commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java

Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java?rev=1089734&r1=1089733&r2=1089734&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java (original)
+++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java Thu
Apr  7 04:37:52 2011
@@ -6505,7 +6505,6 @@ public class StringUtils {
      * @param cs the {@code CharSequence} to be processed
      * @return the resulting char array
      */
-    //
     static char[] toCharArraySequence(CharSequence cs) {
         if (cs instanceof String) {
             return ((String) cs).toCharArray();
@@ -6519,6 +6518,17 @@ public class StringUtils {
         }
     }
 
+    /**
+     * Green implementation of regionMatches.
+     *
+     * @param cs the {@code CharSequence} to be processed
+     * @param ignoreCase whether or not to be case insensitive
+     * @param thisStart the index to start on the {@code cs} CharSequence
+     * @param substring the {@code CharSequence} to be looked for
+     * @param start the index to start on the {@code substring} CharSequence
+     * @param length character length of the region
+     * @return whether the region matched
+     */
     static boolean regionMatchesSequence(CharSequence cs, boolean ignoreCase, int thisStart,

                                          CharSequence substring, int start, int length)
     {



Mime
View raw message