tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1384075 - in /tomcat/trunk/java/org/apache/jasper/servlet: JasperLoader.java JspCServletContext.java JspServletWrapper.java
Date Wed, 12 Sep 2012 18:26:44 GMT
Author: markt
Date: Wed Sep 12 18:26:44 2012
New Revision: 1384075

URL: http://svn.apache.org/viewvc?rev=1384075&view=rev
Log:
Clean-up: UCDetector - use of final

Modified:
    tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java
    tomcat/trunk/java/org/apache/jasper/servlet/JspCServletContext.java
    tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java

Modified: tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java?rev=1384075&r1=1384074&r2=1384075&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java (original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JasperLoader.java Wed Sep 12 18:26:44 2012
@@ -36,9 +36,9 @@ import org.apache.jasper.Constants;
  */
 public class JasperLoader extends URLClassLoader {
 
-    private PermissionCollection permissionCollection;
-    private ClassLoader parent;
-    private SecurityManager securityManager;
+    private final PermissionCollection permissionCollection;
+    private final ClassLoader parent;
+    private final SecurityManager securityManager;
 
     public JasperLoader(URL[] urls, ClassLoader parent,
                         PermissionCollection permissionCollection) {

Modified: tomcat/trunk/java/org/apache/jasper/servlet/JspCServletContext.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JspCServletContext.java?rev=1384075&r1=1384074&r2=1384075&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JspCServletContext.java (original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JspCServletContext.java Wed Sep 12 18:26:44
2012
@@ -63,19 +63,19 @@ public class JspCServletContext implemen
     /**
      * Servlet context attributes.
      */
-    protected Hashtable<String,Object> myAttributes;
+    protected final Hashtable<String,Object> myAttributes;
 
 
     /**
      * The log writer we will write log messages to.
      */
-    protected PrintWriter myLogWriter;
+    protected final PrintWriter myLogWriter;
 
 
     /**
      * The base URL (document root) for this context.
      */
-    protected URL myResourceBaseURL;
+    protected final URL myResourceBaseURL;
 
 
     // ----------------------------------------------------------- Constructors

Modified: tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java?rev=1384075&r1=1384074&r2=1384075&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java (original)
+++ tomcat/trunk/java/org/apache/jasper/servlet/JspServletWrapper.java Wed Sep 12 18:26:44
2012
@@ -83,16 +83,16 @@ public class JspServletWrapper {
     private final Log log = LogFactory.getLog(JspServletWrapper.class);
 
     private Servlet theServlet;
-    private String jspUri;
+    private final String jspUri;
     private Class<?> tagHandlerClass;
-    private JspCompilationContext ctxt;
+    private final JspCompilationContext ctxt;
     private long available = 0L;
-    private ServletConfig config;
-    private Options options;
+    private final ServletConfig config;
+    private final Options options;
     private boolean firstTime = true;
     /** Whether the servlet needs reloading on next access */
     private volatile boolean reload = true;
-    private boolean isTagFile;
+    private final boolean isTagFile;
     private int tripCount;
     private JasperException compileException;
     /** Timestamp of last time servlet resource was modified */



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


Mime
View raw message