donaldp 2002/06/14 00:27:02
Modified: containerkit/src/java/org/apache/excalibur/containerkit/metainfo
ComponentInfo.java
Log:
Make sure all values passed into constructor are non-null
Revision Changes Path
1.10 +17 -1
jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java
Index: ComponentInfo.java
===================================================================
RCS file:
/home/cvs/jakarta-avalon-excalibur/containerkit/src/java/org/apache/excalibur/containerkit/metainfo/ComponentInfo.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- ComponentInfo.java 9 Jun 2002 01:34:59 -0000 1.9
+++ ComponentInfo.java 14 Jun 2002 07:27:02 -0000 1.10
@@ -38,6 +38,22 @@
final ServiceDescriptor[] services,
final DependencyDescriptor[] dependencies )
{
+ if( null == descriptor )
+ {
+ throw new NullPointerException( "descriptor" );
+ }
+ if( null == context )
+ {
+ throw new NullPointerException( "context" );
+ }
+ if( null == services )
+ {
+ throw new NullPointerException( "services" );
+ }
+ if( null == dependencies )
+ {
+ throw new NullPointerException( "dependencies" );
+ }
m_descriptor = descriptor;
m_context = context;
m_services = services;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>