2012/2/1  <ma...@apache.org>:
> Author: markt
> Date: Wed Feb  1 18:42:58 2012
> New Revision: 1239256
>
> URL: http://svn.apache.org/viewvc?rev=1239256&view=rev
> Log:
> Deprecate unused constants

Please check first whether the string values of those constants are used or not!

TOMCAT_CONNECTOR_ATTR_PREFIX (and some names below it) was added to
better document Tomcat-internal attribute names and further replace
string values with these constants. (But I did not find time to test &
finish).


I cannot say anything about those two MBEAN_* constants - I do not
remember seeing them before and I have not searched for them.



>
> Modified:
>    tomcat/trunk/java/org/apache/catalina/Globals.java
>
> Modified: tomcat/trunk/java/org/apache/catalina/Globals.java
> URL: 
> http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/catalina/Globals.java?rev=1239256&r1=1239255&r2=1239256&view=diff
> ==============================================================================
> --- tomcat/trunk/java/org/apache/catalina/Globals.java (original)
> +++ tomcat/trunk/java/org/apache/catalina/Globals.java Wed Feb  1 18:42:58 
> 2012
> @@ -112,7 +112,9 @@ public final class Globals {
>     /**
>      * The servlet context attribute under which the managed bean Registry
>      * will be stored for privileged contexts (if enabled).
> +     * @deprecated Unused. Will be removed in Tomcat 8.0.x.
>      */
> +    @Deprecated
>     public static final String MBEAN_REGISTRY_ATTR =
>         "org.apache.catalina.Registry";
>
> @@ -120,7 +122,9 @@ public final class Globals {
>     /**
>      * The servlet context attribute under which the MBeanServer will be 
> stored
>      * for privileged contexts (if enabled).
> +     * @deprecated Unused. Will be removed in Tomcat 8.0.x.
>      */
> +    @Deprecated
>     public static final String MBEAN_SERVER_ATTR =
>         "org.apache.catalina.MBeanServer";
>
> @@ -159,7 +163,9 @@ public final class Globals {
>      * All request attributes which names start with this prefix are used by
>      * connector implementations. They are passed down to coyoteRequest and 
> back
>      * up. See <code>Request.setAttribute(String, Object)</code>.
> +     * @deprecated Unused. Will be removed in Tomcat 8.0.x.
>      */
> +    @Deprecated
>     public static final String TOMCAT_CONNECTOR_ATTR_PREFIX =
>         "org.apache.tomcat.";
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to