commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1092824 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Fri, 15 Apr 2011 21:44:56 GMT
Author: bayard
Date: Fri Apr 15 21:44:56 2011
New Revision: 1092824

URL: http://svn.apache.org/viewvc?rev=1092824&view=rev
Log:
Moving lastIndexOfAny and indexOfAny to (CharSequence, CharSequence...) from (CharSequence,
CharSequence[])

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=1092824&r1=1092823&r2=1092824&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 Fri
Apr 15 21:44:56 2011
@@ -1909,9 +1909,9 @@ public class StringUtils {
      * @param str  the CharSequence to check, may be null
      * @param searchStrs  the CharSequences to search for, may be null
      * @return the first index of any of the searchStrs in str, -1 if no match
-     * @since 3.0 Changed signature from indexOfAny(String, String[]) to indexOfAny(CharSequence,
CharSequence[])
+     * @since 3.0 Changed signature from indexOfAny(String, String[]) to indexOfAny(CharSequence,
CharSequence...)
      */
-    public static int indexOfAny(CharSequence str, CharSequence[] searchStrs) {
+    public static int indexOfAny(CharSequence str, CharSequence... searchStrs) {
         if (str == null || searchStrs == null) {
             return INDEX_NOT_FOUND;
         }
@@ -1963,9 +1963,9 @@ public class StringUtils {
      * @param str  the CharSequence to check, may be null
      * @param searchStrs  the CharSequences to search for, may be null
      * @return the last index of any of the CharSequences, -1 if no match
-     * @since 3.0 Changed signature from lastIndexOfAny(String, String[]) to lastIndexOfAny(CharSequence,
CharSequence[])
+     * @since 3.0 Changed signature from lastIndexOfAny(String, String[]) to lastIndexOfAny(CharSequence,
CharSequence)
      */
-    public static int lastIndexOfAny(CharSequence str, CharSequence[] searchStrs) {
+    public static int lastIndexOfAny(CharSequence str, CharSequence... searchStrs) {
         if (str == null || searchStrs == null) {
             return INDEX_NOT_FOUND;
         }



Mime
View raw message