felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1755200 - /felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
Date Thu, 04 Aug 2016 16:17:10 GMT
Author: cziegeler
Date: Thu Aug  4 16:17:10 2016
New Revision: 1755200

URL: http://svn.apache.org/viewvc?rev=1755200&view=rev
Log:
Add special cases for long and double

Modified:
    felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java

Modified: felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
URL: http://svn.apache.org/viewvc/felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java?rev=1755200&r1=1755199&r2=1755200&view=diff
==============================================================================
--- felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
(original)
+++ felix/trunk/converter/src/main/java/org/apache/felix/converter/impl/ConvertingImpl.java
Thu Aug  4 16:17:10 2016
@@ -320,6 +320,10 @@ public class ConvertingImpl implements C
         }
         if (cls.equals(boolean.class)) {
             return false;
+        } else if (cls.equals(long.class) ) {
+            return 0L;
+        } else if (cls.equals(double.class) ) {
+            return 0.0;
         } else {
             return 0;
         }



Mime
View raw message