camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ningji...@apache.org
Subject svn commit: r673642 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Date Thu, 03 Jul 2008 10:03:25 GMT
Author: ningjiang
Date: Thu Jul  3 03:03:25 2008
New Revision: 673642

URL: http://svn.apache.org/viewvc?rev=673642&view=rev
Log:
CAMEL-655 Committed the ObjectHelper that I missed

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=673642&r1=673641&r2=673642&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
(original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Thu Jul  3 03:03:25 2008
@@ -145,6 +145,9 @@
         if (value instanceof String) {
             return "true".equalsIgnoreCase(value.toString()) ? Boolean.TRUE : Boolean.FALSE;
         }
+        if (value instanceof Integer) {
+            return (Integer)value > 0 ? Boolean.TRUE : Boolean.FALSE;
+        }
         return null;
     }
 



Mime
View raw message