Skip to content

Commit

Permalink
Additional test changes including new impls for normal context tests.
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@1381 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
drallen committed Feb 2, 2009
1 parent 37ac06d commit a336808
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -73,15 +73,18 @@ public <T> T get(Contextual<T> contextual, CreationalContext<T> creationalContex
else if (creationalContext != null)
{
instance = contextual.create(creationalContext);
getBeanMap().put(contextual, instance);
if (instance != null)
{
getBeanMap().put(contextual, instance);
}
return instance;
}
else
{
return null;
}
}

public <T> T get(Contextual<T> contextual)
{
return get(contextual, null);
Expand Down

0 comments on commit a336808

Please sign in to comment.