commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hen...@apache.org
Subject svn commit: r1243027 - /commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java
Date Sat, 11 Feb 2012 11:19:07 GMT
Author: henrib
Date: Sat Feb 11 11:19:07 2012
New Revision: 1243027

URL: http://svn.apache.org/viewvc?rev=1243027&view=rev
Log:
JEXL-126; double are default real numbers

Modified:
    commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java

Modified: commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java?rev=1243027&r1=1243026&r2=1243027&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java
(original)
+++ commons/proper/jexl/trunk/src/main/java/org/apache/commons/jexl3/parser/ASTNumberLiteral.java
Sat Feb 11 11:19:07 2012
@@ -33,10 +33,7 @@ public class ASTNumberLiteral extends Je
         super(p, id);
     }
 
-    /**
-     * Gets the literal value.
-     * @return the number literal
-     */
+    @Override
     public Number getLiteral() {
         return literal;
     }
@@ -129,14 +126,14 @@ public class ASTNumberLiteral extends Je
                 break;
             }
             case 'd':
-            case 'D': {
+            case 'D':
+            default : {
                 rclass = Double.class;
                 result = Double.valueOf(s);
                 break;
             }
             case 'f':
-            case 'F':
-            default: {
+            case 'F': {
                 rclass = Float.class;
                 try {
                     result = Float.valueOf(s);



Mime
View raw message