[webbeans-commits] Webbeans SVN: r330 - ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/contexts.
webbeans-commits at lists.jboss.org
webbeans-commits at lists.jboss.org
Tue Nov 18 09:14:37 EST 2008
Author: nickarls
Date: 2008-11-18 09:14:36 -0500 (Tue, 18 Nov 2008)
New Revision: 330
Modified:
ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/contexts/SessionBeanMap.java
Log:
minor
Modified: ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/contexts/SessionBeanMap.java
===================================================================
--- ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/contexts/SessionBeanMap.java 2008-11-18 14:11:41 UTC (rev 329)
+++ ri/trunk/webbeans-ri/src/main/java/org/jboss/webbeans/contexts/SessionBeanMap.java 2008-11-18 14:14:36 UTC (rev 330)
@@ -90,8 +90,7 @@
public <T> T get(Bean<? extends T> bean)
{
checkSession();
- String id = getBeanKey(bean);
- return (T) session.getAttribute(id);
+ return (T) session.getAttribute(getBeanKey(bean));
}
/**
@@ -166,8 +165,6 @@
* @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)
{
More information about the weld-commits
mailing list