billbarker    02/04/20 22:56:11

  Modified:    src/share/org/apache/tomcat/core Request.java
  Log:
  Make get/setAttribute final here.
  
  The API is such that you should expect problems with overriding these.  Now it will 
fail at compile time if you try.
  
  Revision  Changes    Path
  1.114     +2 -2      jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java
  
  Index: Request.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/core/Request.java,v
  retrieving revision 1.113
  retrieving revision 1.114
  diff -u -r1.113 -r1.114
  --- Request.java      26 Feb 2002 03:26:55 -0000      1.113
  +++ Request.java      21 Apr 2002 05:56:10 -0000      1.114
  @@ -783,7 +783,7 @@
   
       // -------------------- Attributes
       
  -    public Object getAttribute(String name) {
  +    public final Object getAttribute(String name) {
           Object value=attributes.get(name);
        if( value != null )
            return value;
  @@ -816,7 +816,7 @@
        return null;
       }
   
  -    public void setAttribute(String name, Object value) {
  +    public final void setAttribute(String name, Object value) {
        int status=BaseInterceptor.DECLINED;
        Context ctx=getContext();
        if( ctx!=null ) {
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to