activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r534560 - /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
Date Wed, 02 May 2007 17:29:54 GMT
Author: jstrachan
Date: Wed May  2 10:29:54 2007
New Revision: 534560

URL: http://svn.apache.org/viewvc?view=rev&rev=534560
Log:
use a different exception for notNull() to be more spring-like

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?view=diff&rev=534560&r1=534559&r2=534560
==============================================================================
--- 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
Wed May  2 10:29:54 2007
@@ -75,7 +75,7 @@
 
     public static void notNull(Object value, String name) {
         if (value == null) {
-            throw new NullPointerException("No " + name + " specified");
+            throw new IllegalArgumentException("No " + name + " specified");
         }
     }
 



Mime
View raw message