scolebourne    2003/06/08 07:10:55

  Modified:    lang/src/java/org/apache/commons/lang SystemUtils.java
                        NumberRange.java StringUtils.java
  Log:
  Ensure javadoc is clear about when deprecated methods will be removed.
  
  Revision  Changes    Path
  1.16      +2 -2      
jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java
  
  Index: SystemUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- SystemUtils.java  31 May 2003 01:02:33 -0000      1.15
  +++ SystemUtils.java  8 Jun 2003 14:10:54 -0000       1.16
  @@ -645,7 +645,7 @@
        * </ul>
        * 
        * @deprecated Use [EMAIL PROTECTED] #JAVA_VERSION_FLOAT} instead.
  -     *             Will be removed in Commons Lang 3.0.
  +     *             Method will be removed in Commons Lang 3.0.
        * @return the version, for example 1.31f for JDK 1.3.1
        */
       public static float getJavaVersion() {
  
  
  
  1.8       +4 -2      
jakarta-commons/lang/src/java/org/apache/commons/lang/NumberRange.java
  
  Index: NumberRange.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/NumberRange.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NumberRange.java  9 Apr 2003 00:07:50 -0000       1.7
  +++ NumberRange.java  8 Jun 2003 14:10:54 -0000       1.8
  @@ -65,7 +65,9 @@
    * @since 1.0
    * @version $Revision$ $Date$
    * 
  - * @deprecated Use one of the Range classes in org.apache.commons.lang.math
  + * @deprecated Use one of the Range classes in org.apache.commons.lang.math.
  + *             Class will be removed in Commons Lang 3.0.
  + * 
    */
   public final class NumberRange {
   
  
  
  
  1.46      +8 -1      
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.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- StringUtils.java  30 May 2003 01:00:24 -0000      1.45
  +++ StringUtils.java  8 Jun 2003 14:10:54 -0000       1.46
  @@ -132,6 +132,7 @@
        * @param str the String to check
        * @return the trimmed text (never <code>null</code>)
        * @deprecated Use the clearer named [EMAIL PROTECTED] #trimToEmpty(String)}.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String clean(String str) {
           return (str == null ? "" : str.trim());
  @@ -913,6 +914,7 @@
        * @return String without chomped ending
        * @throws NullPointerException if str is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #chomp(String)} instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String chompLast(String str) {
           return chompLast(str, "\n");
  @@ -926,6 +928,7 @@
        * @return String without chomped ending
        * @throws NullPointerException if str or sep is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #chomp(String,String)} instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String chompLast(String str, String sep) {
           if (str.length() == 0) {
  @@ -949,6 +952,7 @@
        * @return String chomped
        * @throws NullPointerException if str or sep is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #sliceRemainder(String,String)} instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String getChomp(String str, String sep) {
           int idx = str.lastIndexOf(sep);
  @@ -970,6 +974,7 @@
        * @return String without chomped beginning
        * @throws NullPointerException if str or sep is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #sliceFirstRemainder(String,String)} 
instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String prechomp(String str, String sep) {
           int idx = str.indexOf(sep);
  @@ -989,6 +994,7 @@
        * @return String prechomped
        * @throws NullPointerException if str or sep is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #sliceFirst(String,String)} instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String getPrechomp(String str, String sep) {
           int idx = str.indexOf(sep);
  @@ -1038,6 +1044,7 @@
        * @return String without newline
        * @throws NullPointerException if str is <code>null</code>
        * @deprecated Use [EMAIL PROTECTED] #chomp(String)} instead.
  +     *             Method will be removed in Commons Lang 3.0.
        */
       public static String chopNewline(String str) {
           int lastIdx = str.length() - 1;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to