Author: pete.muir(a)jboss.org
Date: 2008-08-10 11:09:58 -0400 (Sun, 10 Aug 2008)
New Revision: 89
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java
Log:
No need to check this, we are in control
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-08-10
15:02:38 UTC (rev 88)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/deployment/DeploymentStrategy.java 2008-08-10
15:09:58 UTC (rev 89)
@@ -37,16 +37,10 @@
public static String[] DEFAULT_IGNORED_PACKAGES = {"java",
"com.sun", "sun", "javasssit"};
- public DeploymentStrategy(ClassLoader classLoader, Container container)
+ public DeploymentStrategy(ClassLoader classLoader, ContainerImpl container)
{
this.classLoader = classLoader;
-
- if (!(container instanceof ContainerImpl))
- {
- throw new IllegalArgumentException("Container must be an instance of
ContainerImpl");
- }
-
- this.container = (ContainerImpl) container;
+ this.container = container;
}
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java
===================================================================
---
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-08-10
15:02:38 UTC (rev 88)
+++
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/init/Initialization.java 2008-08-10
15:09:58 UTC (rev 89)
@@ -27,7 +27,7 @@
public Initialization create()
{
- Container container = new ContainerImpl(null);
+ ContainerImpl container = new ContainerImpl(null);
servletContext.setAttribute(WEBBEANS_CONTAINER_KEY, container);