Author: pete.muir(a)jboss.org
Date: 2008-12-14 15:57:45 -0500 (Sun, 14 Dec 2008)
New Revision: 521
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
Log:
unnecessary check
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2008-12-14
20:33:21 UTC (rev 520)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/ManagerImpl.java 2008-12-14
20:57:45 UTC (rev 521)
@@ -404,13 +404,8 @@
*/
public Context getContext(Class<? extends Annotation> scopeType)
{
- List<Context> contexts = contextMap.getContext(scopeType);
- if (contexts.isEmpty())
- {
- throw new ContextNotActiveException("No active contexts for " +
scopeType.getName());
- }
List<Context> activeContexts = new ArrayList<Context>();
- for (Context context : contexts)
+ for (Context context : contextMap.getContext(scopeType))
{
if (context.isActive())
{