commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scolebou...@apache.org
Subject cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang StringUtils.java
Date Wed, 16 Jul 2003 20:19:24 GMT
scolebourne    2003/07/16 13:19:24

  Modified:    lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  Remove old unused commented out code
  
  Revision  Changes    Path
  1.57      +1 -32     jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- StringUtils.java	15 Jul 2003 23:41:54 -0000	1.56
  +++ StringUtils.java	16 Jul 2003 20:19:24 -0000	1.57
  @@ -2226,37 +2226,6 @@
       }
       
       /**
  -     * <p>Checks if the String contains only certain chars.</p>
  -     *
  -     * @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;
  -    }
  -    */
  -
  -    /**
        * <p>Checks that the String does not contain certain chars.</p>
        *
        * @param str the String to check
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message