commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r793435 - /commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java
Date Mon, 13 Jul 2009 00:05:59 GMT
Author: rahul
Date: Mon Jul 13 00:05:59 2009
New Revision: 793435

URL: http://svn.apache.org/viewvc?rev=793435&view=rev
Log:
Correct cut and paste errors.

Modified:
    commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java

Modified: commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java
URL: http://svn.apache.org/viewvc/commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java?rev=793435&r1=793434&r2=793435&view=diff
==============================================================================
--- commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java (original)
+++ commons/proper/jexl/trunk/src/java/org/apache/commons/jexl/util/Coercion.java Mon Jul
13 00:05:59 2009
@@ -166,10 +166,10 @@
         } else if (val instanceof Number) {
             return new BigDecimal(val.toString());
         } else if (val instanceof Boolean) {
-            throw new Exception("Boolean->Double coercion exception");
+            throw new Exception("Boolean->BigDecimal coercion exception");
         }
 
-        throw new Exception("Double coercion exception");
+        throw new Exception("BigDecimal coercion exception");
     }
 
     /**
@@ -195,10 +195,10 @@
         } else if (val instanceof Number) {
             return BigInteger.valueOf(((Number) val).longValue());
         } else if (val instanceof Boolean) {
-            throw new Exception("Boolean->Integer coercion exception");
+            throw new Exception("Boolean->BigInteger coercion exception");
         }
 
-        throw new Exception("Integer coercion exception");
+        throw new Exception("BigInteger coercion exception");
     }
 
     /**



Mime
View raw message