commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject svn commit: r1094098 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/StringUtils.java
Date Sun, 17 Apr 2011 04:26:20 GMT
Author: bayard
Date: Sun Apr 17 04:26:20 2011
New Revision: 1094098

URL: http://svn.apache.org/viewvc?rev=1094098&view=rev
Log:
Moving indexOfAnyBut and containsAny to vararg APIs

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=1094098&r1=1094097&r2=1094098&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 Sun
Apr 17 04:26:20 2011
@@ -1564,9 +1564,9 @@ public class StringUtils {
      * @return the {@code true} if any of the chars are found,
      * {@code false} if no match or null input
      * @since 2.4
-     * @since 3.0 Changed signature from containsAny(String, char[]) to containsAny(CharSequence,
char[])
+     * @since 3.0 Changed signature from containsAny(String, char[]) to containsAny(CharSequence,
char...)
      */
-    public static boolean containsAny(CharSequence cs, char[] searchChars) {
+    public static boolean containsAny(CharSequence cs, char... searchChars) {
         if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
             return false;
         }
@@ -1655,9 +1655,9 @@ public class StringUtils {
      * @param searchChars  the chars to search for, may be null
      * @return the index of any of the chars, -1 if no match or null input
      * @since 2.0
-     * @since 3.0 Changed signature from indexOfAnyBut(String, char[]) to indexOfAnyBut(CharSequence,
char[])
+     * @since 3.0 Changed signature from indexOfAnyBut(String, char[]) to indexOfAnyBut(CharSequence,
char...)
      */
-    public static int indexOfAnyBut(CharSequence cs, char[] searchChars) {
+    public static int indexOfAnyBut(CharSequence cs, char... searchChars) {
         if (isEmpty(cs) || ArrayUtils.isEmpty(searchChars)) {
             return INDEX_NOT_FOUND;
         }



Mime
View raw message