dlr         01/08/22 18:35:43

  Modified:    src/java/org/apache/velocity/util StringUtils.java
  Log:
  Deprecated poorly named method with suggested alternative.
  
  Revision  Changes    Path
  1.14      +5 -2      
jakarta-velocity/src/java/org/apache/velocity/util/StringUtils.java
  
  Index: StringUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-velocity/src/java/org/apache/velocity/util/StringUtils.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -u -r1.13 -r1.14
  --- StringUtils.java  2001/07/02 03:16:01     1.13
  +++ StringUtils.java  2001/08/23 01:35:43     1.14
  @@ -75,7 +75,7 @@
    *
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Jason van Zyl</a>
    *  @author <a href="mailto:[EMAIL PROTECTED]";>Daniel Rall</a>
  - *  @version $Id: StringUtils.java,v 1.13 2001/07/02 03:16:01 geirm Exp $
  + *  @version $Id: StringUtils.java,v 1.14 2001/08/23 01:35:43 dlr Exp $
    */
   public class StringUtils
   {
  @@ -131,6 +131,9 @@
        *
        * @param data string to remove underscores from.
        * @return String 
  +     * @deprecated Use the org.apache.commons.util.StringUtils class
  +     * instead.  Using its firstLetterCaps() method in conjunction
  +     * with a StringTokenizer will achieve the same result.
        */
       static public String removeUnderScores (String data)
       {
  @@ -144,7 +147,7 @@
           {
               String element = (String) st.nextElement();
               out.append ( firstLetterCaps(element));
  -        }//while
  +        }
   
           return out.toString();
       }
  
  
  

Reply via email to