tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/core Request.java
Date Sun, 21 Apr 2002 05:56:11 GMT
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:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message