Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
git-svn-id: http://anonsvn.jboss.org/repos/weld/ri/trunk@330 1c488680-804c-0410-94cd-c6b725194a0e
  • Loading branch information
nickarls committed Nov 18, 2008
1 parent 5cfb894 commit 0a4fec3
Showing 1 changed file with 1 addition and 4 deletions.
Expand Up @@ -90,8 +90,7 @@ private String getBeanKey(Bean<?> bean) {
public <T> T get(Bean<? extends T> bean)
{
checkSession();
String id = getBeanKey(bean);
return (T) session.getAttribute(id);
return (T) session.getAttribute(getBeanKey(bean));
}

/**
Expand Down Expand Up @@ -166,8 +165,6 @@ public Iterable<Bean<? extends Object>> keySet()
* @param bean The bean to use as key
*
* @param instance The bean instance to add
*
* @return The instance added
*/
public <T> void put(Bean<? extends T> bean, T instance)
{
Expand Down

0 comments on commit 0a4fec3

Please sign in to comment.