From 25b9bd6244e86f8c43a484f3715bbee83002304a Mon Sep 17 00:00:00 2001 From: Stephen Colebourne Date: Wed, 16 Jul 2003 20:19:24 +0000 Subject: [PATCH] Remove old unused commented out code git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137440 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/lang/StringUtils.java | 33 +------------------ 1 file changed, 1 insertion(+), 32 deletions(-) diff --git a/src/java/org/apache/commons/lang/StringUtils.java b/src/java/org/apache/commons/lang/StringUtils.java index 554416da5..efe9e7c83 100644 --- a/src/java/org/apache/commons/lang/StringUtils.java +++ b/src/java/org/apache/commons/lang/StringUtils.java @@ -90,7 +90,7 @@ import org.apache.commons.lang.math.NumberUtils; * @author Arun Mammen Thomas * @author Gary Gregory * @since 1.0 - * @version $Id: StringUtils.java,v 1.56 2003/07/15 23:41:54 scolebourne Exp $ + * @version $Id: StringUtils.java,v 1.57 2003/07/16 20:19:24 scolebourne Exp $ */ public class StringUtils { @@ -2225,37 +2225,6 @@ public class StringUtils { return containsOnly(str, validChars.toCharArray()); } - /** - *

Checks if the String contains only certain chars.

- * - * @param str the String to check - * @param validChars an array of valid chars - * @return true if it only contains valid chars and is non-null - */ - /* rewritten - public static boolean containsOnly(String str, char[] validChars) { - if (str == null || validChars == null) { - return false; - } - int strSize = str.length(); - int validSize = validChars.length; - for (int i = 0; i < strSize; i++) { - char ch = str.charAt(i); - boolean contains = false; - for (int j = 0; j < validSize; j++) { - if (validChars[j] == ch) { - contains = true; - break; - } - } - if (contains == false) { - return false; - } - } - return true; - } - */ - /** *

Checks that the String does not contain certain chars.

*