[jboss-dev-forums] [Design of JBoss ESB] - Re: Missing method isNotNull() in AssertArgument?
bruno
do-not-reply at jboss.com
Fri Oct 26 06:36:30 EDT 2007
Oops, I've attached the wrong diff in the previous post! :)
--- rosetta/src/org/jboss/internal/soa/esb/assertion/AssertArgument.java (revision 16081)
+++ rosetta/src/org/jboss/internal/soa/esb/assertion/AssertArgument.java (working copy)
@@ -38,12 +38,12 @@
* @param argName Argument name.
* @throws IllegalArgumentException Argument is null.
*/
- public static Object isNotNull(Object arg, String argName) throws IllegalArgumentException {
+ public static void isNotNull(Object arg, String argName) throws IllegalArgumentException {
if (arg == null) {
throw new IllegalArgumentException("null '" + argName
+ "' arg in method call.");
}
- return arg;
+ return;
}
/**
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099203#4099203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4099203
More information about the jboss-dev-forums
mailing list