webwork/src/main/webwork/expr Parser.jj,1.20,1.21

[email protected] Tue, 11 Nov 2003 10:49:33 -0800
Newsgroups gmane.comp.java.open-symphony.cvs
Message-ID <[email protected]>
Update of /cvsroot/opensymphony/webwork/src/main/webwork/expr
In directory sc8-pr-cvs1:/tmp/cvs-serv31180/src/main/webwork/expr

Modified Files:
	Parser.jj 
Log Message:
Removed unused imports, fixed javadocs

Index: Parser.jj
===================================================================
RCS file: /cvsroot/opensymphony/webwork/src/main/webwork/expr/Parser.jj,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- Parser.jj	10 Nov 2002 17:52:59 -0000	1.20
+++ Parser.jj	11 Nov 2003 18:49:31 -0000	1.21
@@ -31,25 +31,6 @@
 
 package webwork.expr;
 
-import java.beans.BeanInfo;
-import java.beans.Introspector;
-import java.beans.IntrospectionException;
-import java.beans.PropertyDescriptor;
-import java.beans.PropertyEditor;
-import java.beans.PropertyEditorManager;
-import java.lang.reflect.Method;
-import java.lang.reflect.Modifier;
-import java.lang.reflect.AccessibleObject;
-import java.util.Map;
-import java.util.HashMap;
-import java.util.List;
-import java.util.ArrayList;
-import java.util.ResourceBundle;
-import java.util.Collections;
-
-import javax.servlet.ServletRequest;
-import javax.servlet.jsp.PageContext;
-
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -70,8 +51,7 @@
 
    // Public --------------------------------------------------------
    /**
-    *
-    * @param   request
+    * Set the value stack
     */
    public void setValueStack(ValueStack valueStack)
    {
@@ -295,7 +275,7 @@
    Token token;
    Object operand1;
    Object operand2;
-   boolean answer;
+   boolean answer = false;
 }
 {
    (
@@ -373,7 +353,7 @@
               // If operands are of the same type, do a direct comparison
               if ( operand1.getClass().equals(operand2.getClass()) ) {
                   if ( operand1 instanceof Comparable ) {
-                      int comp = ((Comparable)operand1).compareTo((Comparable)operand2);
+                      int comp = ((Comparable)operand1).compareTo(operand2);
                       return resolve(comp, token);
                   }
               }
@@ -384,7 +364,7 @@
               operand1 = operand1.toString();
               operand2 = operand2.toString();
 
-              int comp = ((Comparable)operand1).compareTo((Comparable)operand2);
+              int comp = ((Comparable)operand1).compareTo(operand2);
               return resolve(comp, token);
 
             } )?




-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/