[jboss-cvs] jboss-portal/common/src/main/org/jboss/portal/common/util ...
Chris Laprun
chris.laprun at jboss.com
Thu Aug 24 20:54:53 EDT 2006
User: claprun
Date: 06/08/24 20:54:53
Modified: common/src/main/org/jboss/portal/common/util
ParameterValidation.java
Log:
- Re-wrote cookie/session management. Now handles cookies outside of initCookie calls. Still needs more testing.
- Added ProducerSessionInformationTestCase and other-tests in build.xml for WSRP.
- Minor improvements.
Revision Changes Path
1.3 +10 -1 jboss-portal/common/src/main/org/jboss/portal/common/util/ParameterValidation.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ParameterValidation.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/common/src/main/org/jboss/portal/common/util/ParameterValidation.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- ParameterValidation.java 11 Jun 2006 22:37:49 -0000 1.2
+++ ParameterValidation.java 25 Aug 2006 00:54:53 -0000 1.3
@@ -24,7 +24,7 @@
/**
* @author <a href="mailto:chris.laprun at jboss.com">Chris Laprun</a>
- * @version $Revision: 1.2 $
+ * @version $Revision: 1.3 $
* @since 2.4 (May 31, 2006)
*/
public class ParameterValidation
@@ -61,4 +61,13 @@
throw new IllegalArgumentException("Must pass a non-empty " + name);
}
}
+
+ /** @since 2.4.1 */
+ public static void throwIllegalArgExceptionIfNullOrEmpty(Object[] array, String name)
+ {
+ if (array == null || array.length == 0)
+ {
+ throw new IllegalArgumentException("Must pass a non-null, non-empty " + name);
+ }
+ }
}
More information about the jboss-cvs-commits
mailing list