You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2012/01/08 20:12:14 UTC
svn commit: r1228922 - in /tomcat/trunk/java/org/apache/tomcat/util/buf:
Ascii.java ByteChunk.java C2BConverter.java MessageBytes.java
Author: markt
Date: Sun Jan 8 19:12:14 2012
New Revision: 1228922
URL: http://svn.apache.org/viewvc?rev=1228922&view=rev
Log:
Deprecate unused code
Modified:
tomcat/trunk/java/org/apache/tomcat/util/buf/Ascii.java
tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/Ascii.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/Ascii.java?rev=1228922&r1=1228921&r2=1228922&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/Ascii.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/Ascii.java Sun Jan 8 19:12:14 2012
@@ -75,7 +75,9 @@ public final class Ascii {
* @param off the start offset of the bytes
* @param len the length of the bytes
* @exception NumberFormatException if the integer format was invalid
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
*/
+ @Deprecated
public static int parseInt(byte[] b, int off, int len)
throws NumberFormatException
{
@@ -97,6 +99,10 @@ public final class Ascii {
return n;
}
+ /**
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
+ */
+ @Deprecated
public static int parseInt(char[] b, int off, int len)
throws NumberFormatException
{
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java?rev=1228922&r1=1228921&r2=1228922&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/ByteChunk.java Sun Jan 8 19:12:14 2012
@@ -492,6 +492,10 @@ public final class ByteChunk implements
return new String(cb.array(), cb.arrayOffset(), cb.length());
}
+ /**
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
+ */
+ @Deprecated
public int getInt()
{
return Ascii.parseInt(buff, start,end-start);
@@ -600,7 +604,9 @@ public final class ByteChunk implements
/**
* Returns true if the message bytes starts with the specified string.
* @param s the string
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
*/
+ @Deprecated
public boolean startsWith(String s) {
// Works only if enc==UTF
byte[] b = buff;
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java?rev=1228922&r1=1228921&r2=1228922&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/C2BConverter.java Sun Jan 8 19:12:14 2012
@@ -200,6 +200,10 @@ final class IntermediateOutputStream ext
// -------------------- Internal methods --------------------
+ /**
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
+ */
+ @Deprecated
void setByteChunk( ByteChunk bb ) {
tbuff=bb;
}
Modified: tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java?rev=1228922&r1=1228921&r2=1228922&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/buf/MessageBytes.java Sun Jan 8 19:12:14 2012
@@ -426,7 +426,9 @@ public final class MessageBytes implemen
* Returns true if the message bytes starts with the specified string.
* @param c the character
* @param starting The start position
+ * @deprecated Unused. Will be removed in Tomcat 8.0.x onwards.
*/
+ @Deprecated
public int indexOf(char c, int starting) {
switch (type) {
case T_STR:
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org