You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2015/05/29 09:35:03 UTC
svn commit: r1682379 -
/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java
Author: struberg
Date: Fri May 29 07:35:02 2015
New Revision: 1682379
URL: http://svn.apache.org/r1682379
Log:
OWB-989 remove unecessary cast
Modified:
openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java
Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java?rev=1682379&r1=1682378&r2=1682379&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java (original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/context/WebConversationService.java Fri May 29 07:35:02 2015
@@ -24,7 +24,6 @@ import javax.servlet.http.HttpSession;
import java.util.concurrent.atomic.AtomicInteger;
import org.apache.webbeans.config.WebBeansContext;
-import org.apache.webbeans.context.RequestContext;
import org.apache.webbeans.spi.ContextsService;
import org.apache.webbeans.spi.ConversationService;
@@ -126,11 +125,7 @@ public class WebConversationService impl
ContextsService contextsService = webBeansContext.getContextsService();
if (contextsService instanceof WebContextsService)
{
- RequestContext requestContext = ((WebContextsService) contextsService).getRequestContext(false);
- if (requestContext instanceof ServletRequestContext)
- {
- return ((ServletRequestContext) requestContext).getServletRequest();
- }
+ return ((WebContextsService) contextsService).getRequestContext(false).getServletRequest();
}
return null;