empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From doeb...@apache.org
Subject svn commit: r1137779 - /incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
Date Mon, 20 Jun 2011 20:58:47 GMT
Author: doebele
Date: Mon Jun 20 20:58:47 2011
New Revision: 1137779

URL: http://svn.apache.org/viewvc?rev=1137779&view=rev
Log:
EMPIREDB-109
Submitted by Daniel Weidele on 06/16/11

Modified:
    incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java

Modified: incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
URL: http://svn.apache.org/viewvc/incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java?rev=1137779&r1=1137778&r2=1137779&view=diff
==============================================================================
--- incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
(original)
+++ incubator/empire-db/trunk/empire-db/src/main/java/org/apache/empire/commons/ObjectUtils.java
Mon Jun 20 20:58:47 2011
@@ -374,6 +374,8 @@ public final class ObjectUtils
             return c.cast(getInteger(v));
         if (c.isAssignableFrom(Long.class))
             return c.cast(getLong(v));
+        if(c.isAssignableFrom(Double.class))
+        	return c.cast(getDouble(v));
         if (c.isAssignableFrom(String.class))
             return c.cast(v.toString());
         // other



Mime
View raw message