commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bay...@apache.org
Subject cvs commit: jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang StringsTest.java
Date Fri, 05 Jul 2002 13:12:46 GMT
bayard      2002/07/05 06:12:46

  Modified:    lang/src/java/org/apache/commons/lang Strings.java
               lang/src/test/org/apache/commons/lang StringsTest.java
  Log:
  Removed the firstLetterCaps method. It was redundant.
  
  Revision  Changes    Path
  1.16      +1 -15     jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/Strings.java
  
  Index: Strings.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/src/java/org/apache/commons/lang/Strings.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- Strings.java	5 Jul 2002 06:56:51 -0000	1.15
  +++ Strings.java	5 Jul 2002 13:12:46 -0000	1.16
  @@ -1352,20 +1352,6 @@
       }
   
       /**
  -     * Makes the first letter capital and leaves the rest as is.
  -     * Null is returned as null.
  -     *
  -     * @param str  the string to change the case of.
  -     * @return the modified string
  -     */
  -    public static String firstLetterCaps(String str) {
  -        if (str == null) {
  -            return null;
  -        }
  -        return str.substring(0, 1).toUpperCase() + str.substring(1);
  -    }
  -
  -    /**
        * Swaps the case of String. Properly looks after 
        * making sure the start of words are Titlecase and not 
        * Uppercase. Null is returned as null.
  
  
  
  1.7       +1 -4      jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang/StringsTest.java
  
  Index: StringsTest.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/lang/src/test/org/apache/commons/lang/StringsTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- StringsTest.java	5 Jul 2002 07:03:39 -0000	1.6
  +++ StringsTest.java	5 Jul 2002 13:12:46 -0000	1.7
  @@ -106,9 +106,6 @@
   
       public void testCapitalizeFunctions()
       {
  -        assertEquals("firstLetterCaps(String) failed",
  -                     CAP_FOO, Strings.firstLetterCaps(FOO));
  -
           assertEquals("capitalise(String) failed",
                        CAP_FOO, Strings.capitalise(FOO) );
           assertEquals("capitaliseAllWords(String) failed",
  
  
  

--
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