You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by dl...@apache.org on 2004/11/16 21:59:27 UTC

svn commit: rev 76035 - jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node

Author: dlr
Date: Tue Nov 16 12:59:26 2004
New Revision: 76035

Modified:
   jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTEQNode.java
Log:
Testing commit access to Subversion repository.

* src/java/org/apache/velocity/runtime/parser/node/ASTEQNode.java
  evaluate(InternalContextAdapter): Removed extraneous space in method
  declaration.

  value(InternalContextAdapter): Removed unnecessary local variable
  "val".


Modified: jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTEQNode.java
==============================================================================
--- jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTEQNode.java	(original)
+++ jakarta/velocity/trunk/src/java/org/apache/velocity/runtime/parser/node/ASTEQNode.java	Tue Nov 16 12:59:26 2004
@@ -29,7 +29,7 @@
  *  This operator requires that the LHS and RHS are both of the
  *  same Class.
  *
- *  @version $Id: ASTEQNode.java,v 1.11 2004/03/19 17:13:36 dlr Exp $
+ *  @version $Id$
  */
 public class ASTEQNode extends SimpleNode
 {
@@ -65,7 +65,7 @@
      *          false if not compatible arguments, or false
      *          if either LHS or RHS is null
      */
-    public boolean evaluate( InternalContextAdapter context)
+    public boolean evaluate(InternalContextAdapter context)
         throws MethodInvocationException
     {
         Object left = jjtGetChild(0).value(context);
@@ -115,9 +115,6 @@
     public Object value(InternalContextAdapter context)
         throws MethodInvocationException
     {
-        boolean val = evaluate(context);
-
-        return val ? Boolean.TRUE : Boolean.FALSE;
+        return evaluate(context) ? Boolean.TRUE : Boolean.FALSE;
     }
-
 }

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