commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r202185 - in /jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser: ASTSubtractNode.java ASTUnaryMinusNode.java
Date Tue, 28 Jun 2005 13:55:41 GMT
Author: dion
Date: Tue Jun 28 06:55:41 2005
New Revision: 202185

URL: http://svn.apache.org/viewcvs?rev=202185&view=rev
Log:
Code cleanup

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

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java?rev=202185&r1=202184&r2=202185&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTSubtractNode.java
Tue Jun 28 06:55:41 2005
@@ -96,10 +96,7 @@
         {
             return new Integer((int) v);
         }
-        else
-        {
-            return new Long(v);
-        }
+        return new Long(v);
      }
     /** Accept the visitor. **/
     public Object jjtAccept(ParserVisitor visitor, Object data)

Modified: jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java?rev=202185&r1=202184&r2=202185&view=diff
==============================================================================
--- jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
(original)
+++ jakarta/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/parser/ASTUnaryMinusNode.java
Tue Jun 28 06:55:41 2005
@@ -51,10 +51,7 @@
         {
             return new Integer(- ( ((Integer) val).intValue() ) );
         }
-        else
-        {
-            throw new Exception("expression not integer valued");
-        }
+        throw new Exception("expression not integer valued");
     }
 }
 



---------------------------------------------------------------------
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