commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r397382 - /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java
Date Thu, 27 Apr 2006 04:11:13 GMT
Author: dion
Date: Wed Apr 26 21:11:11 2006
New Revision: 397382

URL: http://svn.apache.org/viewcvs?rev=397382&view=rev
Log:
More checkstyle

Modified:
    jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java?rev=397382&r1=397381&r2=397382&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTAndNode.java
Wed Apr 26 21:11:11 2006
@@ -1,12 +1,12 @@
 /*
- * Copyright 2002,2004 The Apache Software Foundation.
- * 
+ * Copyright 2002-2006 The Apache Software Foundation.
+ *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *      http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -19,43 +19,34 @@
 import org.apache.commons.jexl.util.Coercion;
 
 /**
- *  && and 'and'
- *
- *  @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
- *  @version $Id$
+ * && and 'and'.
+ * 
+ * @author <a href="mailto:geirm@apache.org">Geir Magnusson Jr.</a>
+ * @version $Id$
  */
-public class ASTAndNode extends SimpleNode
-{
-    public ASTAndNode(int id)
-    {
+public class ASTAndNode extends SimpleNode {
+    public ASTAndNode(int id) {
         super(id);
     }
 
-    public ASTAndNode(Parser p, int id)
-    {
+    public ASTAndNode(Parser p, int id) {
         super(p, id);
     }
 
-
-    /** Accept the visitor. **/
-    public Object jjtAccept(ParserVisitor visitor, Object data)
-    {
+    /** Accept the visitor. * */
+    public Object jjtAccept(ParserVisitor visitor, Object data) {
         return visitor.visit(this, data);
     }
 
-    public Object value(JexlContext jc)
-        throws Exception
-    {
+    public Object value(JexlContext jc) throws Exception {
         Object left = ((SimpleNode) jjtGetChild(0)).value(jc);
-        boolean leftValue = Coercion.coerceBoolean(left).booleanValue(); 
+        boolean leftValue = Coercion.coerceBoolean(left).booleanValue();
 
         /*
          * coercion rules
          */
-        return (leftValue
-        		&& 
-				Coercion.coerceBoolean(
-						((SimpleNode) jjtGetChild(1)).value(jc)).booleanValue()) ?
-            Boolean.TRUE : Boolean.FALSE;
+        return (leftValue && Coercion.coerceBoolean(
+                ((SimpleNode) jjtGetChild(1)).value(jc)).booleanValue()) ? Boolean.TRUE
+                : Boolean.FALSE;
     }
 }



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


Mime
View raw message