tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r1291399 - /openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java
Date Mon, 20 Feb 2012 18:31:11 GMT
Author: adc
Date: Mon Feb 20 18:31:11 2012
New Revision: 1291399

URL: http://svn.apache.org/viewvc?rev=1291399&view=rev
Log:
Nice assert to protect this class.

Modified:
    openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java

Modified: openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java?rev=1291399&r1=1291398&r2=1291399&view=diff
==============================================================================
--- openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java
(original)
+++ openejb/trunk/openejb/container/openejb-core/src/main/java/org/apache/openejb/cdi/StartupObject.java
Mon Feb 20 18:31:11 2012
@@ -33,6 +33,10 @@ public class StartupObject {
     private final List<BeanContext> beanContexts;
 
     public StartupObject(AppContext appContext, AppInfo appInfo, List<BeanContext>
beanContexts) {
+        assert appContext != null;
+        assert appInfo != null;
+        assert beanContexts != null;
+
         this.appContext = appContext;
         this.appInfo = appInfo;
         this.beanContexts = beanContexts;



Mime
View raw message