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 Sun, 15 Dec 2002 16:54:24 GMT
scolebourne    2002/12/15 08:54:24

  Modified:    lang/src/test/org/apache/commons/lang StringUtilsIsTest.java
               lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  Remove isTrue to BooleanUtils
  
  Revision  Changes    Path
  1.4       +1 -15     jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsIsTest.java
  
  Index: StringUtilsIsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/StringUtilsIsTest.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- StringUtilsIsTest.java	15 Nov 2002 00:06:40 -0000	1.3
  +++ StringUtilsIsTest.java	15 Dec 2002 16:54:23 -0000	1.4
  @@ -131,20 +131,6 @@
           assertEquals(false, StringUtils.isWhitespace("aba"));
       }
   
  -    public void testIsTrue() {
  -        assertEquals(false, StringUtils.isTrue(null));
  -        assertEquals(false, StringUtils.isTrue(""));
  -        assertEquals(false, StringUtils.isTrue("off"));
  -        assertEquals(false, StringUtils.isTrue("oof"));
  -        assertEquals(true, StringUtils.isTrue("true"));
  -        assertEquals(true, StringUtils.isTrue("yes"));
  -        assertEquals(true, StringUtils.isTrue("on"));
  -        assertEquals(true, StringUtils.isTrue("TRUE"));
  -        assertEquals(true, StringUtils.isTrue("ON"));
  -        assertEquals(true, StringUtils.isTrue("YES"));
  -        assertEquals(true, StringUtils.isTrue("TruE"));
  -    }
  -
       public void testIsAlphaspace() {
           assertEquals(false, StringUtils.isAlphaSpace(null));
           assertEquals(true, StringUtils.isAlphaSpace(""));
  
  
  
  1.29      +1 -23     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.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- StringUtils.java	7 Dec 2002 21:50:29 -0000	1.28
  +++ StringUtils.java	15 Dec 2002 16:54:23 -0000	1.29
  @@ -1652,28 +1652,6 @@
           return true;
       }
   
  -    /**
  -     * <p>Checks if the String contains a 'true' value.</p>
  -     *
  -     * <p>These values are defined as the words
  -     * <code>'true'</code>, <code>'on'</code> and
  -     * <code>'yes'</code>, case insensitive.</p>
  -     *
  -     * @param str the String to check
  -     * @return <code>true</code> if the string is 'true|on|yes' case
  -     *  insensitive
  -     */
  -    public static boolean isTrue(String str) {
  -        if ("true".equalsIgnoreCase(str)) {
  -            return true;
  -        } else if ("on".equalsIgnoreCase(str)) {
  -            return true;
  -        } else if ("yes".equalsIgnoreCase(str)) {
  -            return true;
  -        }
  -        return false;
  -    }
  -
       // Defaults
       //--------------------------------------------------------------------------
       
  
  
  

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


Mime
View raw message