Ensure javadoc is clear about when deprecated methods will be removed.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk@137358 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stephen Colebourne 2003-06-08 14:10:54 +00:00
parent fd6d8a4a3d
commit 4c50eca073
3 changed files with 14 additions and 5 deletions

View File

@ -63,9 +63,11 @@ package org.apache.commons.lang;
* @author <a href="mailto:chrise@esha.com">Christopher Elkins</a>
* @author Stephen Colebourne
* @since 1.0
* @version $Revision: 1.7 $ $Date: 2003/04/09 00:07:50 $
* @version $Revision: 1.8 $ $Date: 2003/06/08 14:10:54 $
*
* @deprecated Use one of the Range classes in org.apache.commons.lang.math.
* Class will be removed in Commons Lang 3.0.
*
* @deprecated Use one of the Range classes in org.apache.commons.lang.math
*/
public final class NumberRange {

View File

@ -77,7 +77,7 @@ import java.util.StringTokenizer;
* @author Arun Mammen Thomas
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @since 1.0
* @version $Id: StringUtils.java,v 1.45 2003/05/30 01:00:24 ggregory Exp $
* @version $Id: StringUtils.java,v 1.46 2003/06/08 14:10:54 scolebourne Exp $
*/
public class StringUtils {
@ -132,6 +132,7 @@ public class StringUtils {
* @param str the String to check
* @return the trimmed text (never <code>null</code>)
* @deprecated Use the clearer named {@link #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 @@ public class StringUtils {
* @return String without chomped ending
* @throws NullPointerException if str is <code>null</code>
* @deprecated Use {@link #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 @@ public class StringUtils {
* @return String without chomped ending
* @throws NullPointerException if str or sep is <code>null</code>
* @deprecated Use {@link #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 @@ public class StringUtils {
* @return String chomped
* @throws NullPointerException if str or sep is <code>null</code>
* @deprecated Use {@link #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 @@ public class StringUtils {
* @return String without chomped beginning
* @throws NullPointerException if str or sep is <code>null</code>
* @deprecated Use {@link #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 @@ public class StringUtils {
* @return String prechomped
* @throws NullPointerException if str or sep is <code>null</code>
* @deprecated Use {@link #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 @@ public class StringUtils {
* @return String without newline
* @throws NullPointerException if str is <code>null</code>
* @deprecated Use {@link #chomp(String)} instead.
* Method will be removed in Commons Lang 3.0.
*/
public static String chopNewline(String str) {
int lastIdx = str.length() - 1;

View File

@ -67,7 +67,7 @@ package org.apache.commons.lang;
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
* @author Michael Becke
* @since 1.0
* @version $Id: SystemUtils.java,v 1.15 2003/05/31 01:02:33 ggregory Exp $
* @version $Id: SystemUtils.java,v 1.16 2003/06/08 14:10:54 scolebourne Exp $
*/
public class SystemUtils {
@ -645,7 +645,7 @@ public class SystemUtils {
* </ul>
*
* @deprecated Use {@link #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() {