scolebourne 2003/06/24 01:15:15
Modified: lang/src/java/org/apache/commons/lang StringUtils.java
Log:
Deprecate escape, and comment escape and unescape fully
Revision Changes Path
1.50 +5 -3
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.49
retrieving revision 1.50
diff -u -r1.49 -r1.50
--- StringUtils.java 24 Jun 2003 02:55:17 -0000 1.49
+++ StringUtils.java 24 Jun 2003 08:15:15 -0000 1.50
@@ -1162,7 +1162,6 @@
// Conversion
//--------------------------------------------------------------------------
- // spec 3.10.6
/**
* <p>Escapes any values it finds into their String form.</p>
*
@@ -1170,12 +1169,14 @@
* <code>'t'</code>.</p>
*
* <p>As of Lang 2.0, this calls [EMAIL PROTECTED]
StringEscapeUtils#escapeJava(java.lang.String)}
- * behind the scenes. For convenience, this method is not deprecated.
+ * behind the scenes.
* </p>
* @see StringEscapeUtils#escapeJava(java.lang.String)
* @param str String to escape values in
* @return String with escaped values
* @throws NullPointerException if str is <code>null</code>
+ * @deprecated Use [EMAIL PROTECTED]
StringEscapeUtils#escapeJava(java.lang.String)}
+ * This method will be removed in Commons Lang 3.0
*/
public static String escape(String str) {
return StringEscapeUtils.escapeJava(str);
@@ -1191,6 +1192,7 @@
* <p>
* @see StringEscapeUtils#unescapeJava(java.lang.String)
* @deprecated Use [EMAIL PROTECTED]
StringEscapeUtils#unescapeJava(java.lang.String)}
+ * This method will be removed in Commons Lang 3.0
*/
public static String unescape(String str) {
return StringEscapeUtils.unescapeJava(str);
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]