tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu...@apache.org
Subject cvs commit: jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler Generator.java
Date Tue, 08 Oct 2002 00:45:23 GMT
luehe       2002/10/07 17:45:23

  Modified:    jasper2/src/share/org/apache/jasper/compiler Generator.java
  Log:
  - Declare both generated servlet and tag handler classes final.
  - Declare JspFragmentHelper subclass private.
  
  Revision  Changes    Path
  1.108     +6 -6      jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java
  
  Index: Generator.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-jasper/jasper2/src/share/org/apache/jasper/compiler/Generator.java,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- Generator.java	4 Oct 2002 19:21:44 -0000	1.107
  +++ Generator.java	8 Oct 2002 00:45:23 -0000	1.108
  @@ -452,7 +452,7 @@
           genPreambleImports();
   
   	// Generate class declaration
  -	out.printin("public class ");
  +	out.printin("public final class ");
   	out.print  (servletClassName);
   	out.print  (" extends ");
   	out.println(pageInfo.getExtends());
  @@ -2972,7 +2972,7 @@
           genPreambleImports();
   
   	// Generate class declaration
  -	out.printin("public class ");
  +	out.printin("public final class ");
   	out.print(tagInfo.getTagName());
   	out.println(" extends javax.servlet.jsp.tagext.SimpleTagSupport");
   	out.printil("    implements javax.servlet.jsp.el.FunctionMapper, ");
  @@ -3441,7 +3441,7 @@
               out.pushIndent();
               // Note: cannot be static, as we need to reference things like
   	    // _jspx_meth_*
  -	    out.printil( "class " + className );
  +	    out.printil( "private class " + className );
               out.printil( "    extends " +
                   "org.apache.jasper.runtime.JspFragmentHelper" );
               out.printil( "{" );
  
  
  

--
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