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:
parent
fd6d8a4a3d
commit
4c50eca073
|
@ -63,9 +63,11 @@ package org.apache.commons.lang;
|
||||||
* @author <a href="mailto:chrise@esha.com">Christopher Elkins</a>
|
* @author <a href="mailto:chrise@esha.com">Christopher Elkins</a>
|
||||||
* @author Stephen Colebourne
|
* @author Stephen Colebourne
|
||||||
* @since 1.0
|
* @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 {
|
public final class NumberRange {
|
||||||
|
|
||||||
|
|
|
@ -77,7 +77,7 @@ import java.util.StringTokenizer;
|
||||||
* @author Arun Mammen Thomas
|
* @author Arun Mammen Thomas
|
||||||
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
||||||
* @since 1.0
|
* @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 {
|
public class StringUtils {
|
||||||
|
|
||||||
|
@ -132,6 +132,7 @@ public class StringUtils {
|
||||||
* @param str the String to check
|
* @param str the String to check
|
||||||
* @return the trimmed text (never <code>null</code>)
|
* @return the trimmed text (never <code>null</code>)
|
||||||
* @deprecated Use the clearer named {@link #trimToEmpty(String)}.
|
* @deprecated Use the clearer named {@link #trimToEmpty(String)}.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String clean(String str) {
|
public static String clean(String str) {
|
||||||
return (str == null ? "" : str.trim());
|
return (str == null ? "" : str.trim());
|
||||||
|
@ -913,6 +914,7 @@ public class StringUtils {
|
||||||
* @return String without chomped ending
|
* @return String without chomped ending
|
||||||
* @throws NullPointerException if str is <code>null</code>
|
* @throws NullPointerException if str is <code>null</code>
|
||||||
* @deprecated Use {@link #chomp(String)} instead.
|
* @deprecated Use {@link #chomp(String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String chompLast(String str) {
|
public static String chompLast(String str) {
|
||||||
return chompLast(str, "\n");
|
return chompLast(str, "\n");
|
||||||
|
@ -926,6 +928,7 @@ public class StringUtils {
|
||||||
* @return String without chomped ending
|
* @return String without chomped ending
|
||||||
* @throws NullPointerException if str or sep is <code>null</code>
|
* @throws NullPointerException if str or sep is <code>null</code>
|
||||||
* @deprecated Use {@link #chomp(String,String)} instead.
|
* @deprecated Use {@link #chomp(String,String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String chompLast(String str, String sep) {
|
public static String chompLast(String str, String sep) {
|
||||||
if (str.length() == 0) {
|
if (str.length() == 0) {
|
||||||
|
@ -949,6 +952,7 @@ public class StringUtils {
|
||||||
* @return String chomped
|
* @return String chomped
|
||||||
* @throws NullPointerException if str or sep is <code>null</code>
|
* @throws NullPointerException if str or sep is <code>null</code>
|
||||||
* @deprecated Use {@link #sliceRemainder(String,String)} instead.
|
* @deprecated Use {@link #sliceRemainder(String,String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String getChomp(String str, String sep) {
|
public static String getChomp(String str, String sep) {
|
||||||
int idx = str.lastIndexOf(sep);
|
int idx = str.lastIndexOf(sep);
|
||||||
|
@ -970,6 +974,7 @@ public class StringUtils {
|
||||||
* @return String without chomped beginning
|
* @return String without chomped beginning
|
||||||
* @throws NullPointerException if str or sep is <code>null</code>
|
* @throws NullPointerException if str or sep is <code>null</code>
|
||||||
* @deprecated Use {@link #sliceFirstRemainder(String,String)} instead.
|
* @deprecated Use {@link #sliceFirstRemainder(String,String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String prechomp(String str, String sep) {
|
public static String prechomp(String str, String sep) {
|
||||||
int idx = str.indexOf(sep);
|
int idx = str.indexOf(sep);
|
||||||
|
@ -989,6 +994,7 @@ public class StringUtils {
|
||||||
* @return String prechomped
|
* @return String prechomped
|
||||||
* @throws NullPointerException if str or sep is <code>null</code>
|
* @throws NullPointerException if str or sep is <code>null</code>
|
||||||
* @deprecated Use {@link #sliceFirst(String,String)} instead.
|
* @deprecated Use {@link #sliceFirst(String,String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String getPrechomp(String str, String sep) {
|
public static String getPrechomp(String str, String sep) {
|
||||||
int idx = str.indexOf(sep);
|
int idx = str.indexOf(sep);
|
||||||
|
@ -1038,6 +1044,7 @@ public class StringUtils {
|
||||||
* @return String without newline
|
* @return String without newline
|
||||||
* @throws NullPointerException if str is <code>null</code>
|
* @throws NullPointerException if str is <code>null</code>
|
||||||
* @deprecated Use {@link #chomp(String)} instead.
|
* @deprecated Use {@link #chomp(String)} instead.
|
||||||
|
* Method will be removed in Commons Lang 3.0.
|
||||||
*/
|
*/
|
||||||
public static String chopNewline(String str) {
|
public static String chopNewline(String str) {
|
||||||
int lastIdx = str.length() - 1;
|
int lastIdx = str.length() - 1;
|
||||||
|
|
|
@ -67,7 +67,7 @@ package org.apache.commons.lang;
|
||||||
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
* @author <a href="mailto:ggregory@seagullsw.com">Gary Gregory</a>
|
||||||
* @author Michael Becke
|
* @author Michael Becke
|
||||||
* @since 1.0
|
* @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 {
|
public class SystemUtils {
|
||||||
|
|
||||||
|
@ -645,7 +645,7 @@ public class SystemUtils {
|
||||||
* </ul>
|
* </ul>
|
||||||
*
|
*
|
||||||
* @deprecated Use {@link #JAVA_VERSION_FLOAT} instead.
|
* @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
|
* @return the version, for example 1.31f for JDK 1.3.1
|
||||||
*/
|
*/
|
||||||
public static float getJavaVersion() {
|
public static float getJavaVersion() {
|
||||||
|
|
Loading…
Reference in New Issue