From: markt Date: Fri, 21 Nov 2008 09:36:09 +0000 (+0000) Subject: Make private / remove deprecated methods X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=663dad1535f341f6cc2ff5efe080e78ac02e7fa2;p=tomcat7.0 Make private / remove deprecated methods git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@719550 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/java/org/apache/tomcat/util/IntrospectionUtils.java b/java/org/apache/tomcat/util/IntrospectionUtils.java index 8bc3fe6c2..2a46bcbff 100644 --- a/java/org/apache/tomcat/util/IntrospectionUtils.java +++ b/java/org/apache/tomcat/util/IntrospectionUtils.java @@ -470,25 +470,9 @@ public final class IntrospectionUtils { /** * Replace ${NAME} with the property value - * - * @deprecated Use the explicit method - */ - public static String replaceProperties(String value, Object getter) { - if (getter instanceof Hashtable) - return replaceProperties(value, (Hashtable) getter, null); - - if (getter instanceof PropertySource) { - PropertySource src[] = new PropertySource[] { (PropertySource) getter }; - return replaceProperties(value, null, src); - } - return value; - } - - /** - * Replace ${NAME} with the property value */ - public static String replaceProperties(String value, Hashtable staticProp, - PropertySource dynamicProp[]) { + public static String replaceProperties(String value, + Hashtable staticProp, PropertySource dynamicProp[]) { if (value.indexOf("$") < 0) { return value; } diff --git a/java/org/apache/tomcat/util/buf/B2CConverter.java b/java/org/apache/tomcat/util/buf/B2CConverter.java index 995476b3e..c71e06b7a 100644 --- a/java/org/apache/tomcat/util/buf/B2CConverter.java +++ b/java/org/apache/tomcat/util/buf/B2CConverter.java @@ -67,17 +67,6 @@ public class B2CConverter { static final int BUFFER_SIZE=8192; char result[]=new char[BUFFER_SIZE]; - /** Convert a buffer of bytes into a chars - * @deprecated - */ - public void convert( ByteChunk bb, CharChunk cb ) - throws IOException - { - // Set the ByteChunk as input to the Intermediate reader - convert(bb, cb, cb.getBuffer().length - cb.getEnd()); - } - - public void convert( ByteChunk bb, CharChunk cb, int limit) throws IOException { diff --git a/java/org/apache/tomcat/util/buf/MessageBytes.java b/java/org/apache/tomcat/util/buf/MessageBytes.java index 4e35b43e0..42db3c515 100644 --- a/java/org/apache/tomcat/util/buf/MessageBytes.java +++ b/java/org/apache/tomcat/util/buf/MessageBytes.java @@ -68,10 +68,10 @@ public final class MessageBytes implements Cloneable, Serializable { /** * Creates a new, uninitialized MessageBytes object. - * @deprecated Use static newInstance() in order to allow + * Use static newInstance() in order to allow * future hooks. */ - public MessageBytes() { + private MessageBytes() { } /** Construct a new MessageBytes instance