Skip to content

Commit

Permalink
fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
pmuir committed Nov 24, 2010
1 parent 57cca0a commit 77915c8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions impl/src/main/java/org/jboss/weld/manager/BeanManagerImpl.java
Expand Up @@ -621,27 +621,27 @@ private <T> void notifyObservers(final T event, final Set<ObserverMethod<? super
*/
public Context getContext(Class<? extends Annotation> scopeType)
{
Context activeContexts = null;
Context activeContext = null;
for (Context context : contexts.get(scopeType))
{
if (context.isActive())
{
if(activeContexts == null)
if(activeContext == null)
{
activeContexts = context;
activeContext = context;
}
else
{
throw new IllegalStateException(DUPLICATE_ACTIVE_CONTEXTS, scopeType.getName());
}
}
}
if (activeContexts == null)
if (activeContext == null)
{
throw new ContextNotActiveException(CONTEXT_NOT_ACTIVE, scopeType.getName());
}

return activeContexts;
return activeContext;
}

public Object getReference(Bean<?> bean, CreationalContext<?> creationalContext, boolean noProxy)
Expand Down

0 comments on commit 77915c8

Please sign in to comment.