Author: markt
Date: Fri Nov 24 15:11:19 2006
New Revision: 479045

URL: http://svn.apache.org/viewvc?view=rev&rev=479045
Log:
Code clean up. No functional change.

Modified:
    tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Validator.java

Modified: 
tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Validator.java
URL: 
http://svn.apache.org/viewvc/tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Validator.java?view=diff&rev=479045&r1=479044&r2=479045
==============================================================================
--- tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Validator.java 
(original)
+++ tomcat/jasper/tc5.5.x/src/share/org/apache/jasper/compiler/Validator.java 
Fri Nov 24 15:11:19 2006
@@ -36,7 +36,6 @@
 
 import org.apache.jasper.Constants;
 import org.apache.jasper.JasperException;
-import org.apache.jasper.JspCompilationContext;
 import org.xml.sax.Attributes;
 
 /**
@@ -84,7 +83,6 @@
        DirectiveVisitor(Compiler compiler) throws JasperException {
            this.pageInfo = compiler.getPageInfo();
            this.err = compiler.getErrorDispatcher();
-           JspCompilationContext ctxt = compiler.getCompilationContext();
        }
 
        public void visit(Node.IncludeDirective n) throws JasperException {
@@ -311,7 +309,6 @@
 
        private PageInfo pageInfo;
        private ErrorDispatcher err;
-       private TagInfo tagInfo;
         private ClassLoader loader;
 
        private static final JspUtil.ValidAttribute[] jspRootAttrs = {
@@ -396,7 +393,6 @@
        ValidateVisitor(Compiler compiler) {
            this.pageInfo = compiler.getPageInfo();
            this.err = compiler.getErrorDispatcher();
-           this.tagInfo = compiler.getCompilationContext().getTagInfo();
            this.loader = compiler.getCompilationContext().getClassLoader();
        }
 
@@ -478,7 +474,6 @@
        public void visit(Node.SetProperty n) throws JasperException {
             JspUtil.checkAttributes("SetProperty", n,
                                     setPropertyAttrs, err);
-           String name = n.getTextAttribute("name");
            String property = n.getTextAttribute("property");
            String param = n.getTextAttribute("param");
            String value = n.getAttributeValue("value");
@@ -1122,7 +1117,7 @@
                                                       value, false, el,
                                                       dynamic);
                     } else {
-                       value = value.replace(Constants.ESC, '$');
+                       value = value.replace(Constants.HACK_CHAR, '$');
                         result = new Node.JspAttribute(qName, uri, localName,
                                                       value, false, null,
                                                       dynamic);
@@ -1402,14 +1397,12 @@
      */
     static class TagExtraInfoVisitor extends Node.Visitor {
 
-       private PageInfo pageInfo;
        private ErrorDispatcher err;
 
        /*
         * Constructor
         */
        TagExtraInfoVisitor(Compiler compiler) {
-           this.pageInfo = compiler.getPageInfo();
            this.err = compiler.getErrorDispatcher();
        }
 



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

Reply via email to