[grizzly~git:30837735] [master] + fix findbugs issues

  • From: oleksiys@...
  • To: commits@...
  • Subject: [grizzly~git:30837735] [master] + fix findbugs issues
  • Date: Thu, 18 Jul 2013 01:41:08 +0000

Project:    grizzly
Repository: git
Revision:   3083773594fbf1d2e59bef21c4d82c196a57482a
Author:     oleksiys
Date:       2013-07-18 01:39:27 UTC
Link:       

Log Message:
------------
[master] + fix findbugs issues



Revisions:
----------
3083773594fbf1d2e59bef21c4d82c196a57482a


Modified Paths:
---------------
modules/spdy/src/main/java/org/glassfish/grizzly/spdy/SpdyStream.java


Diffs:
------
--- a/modules/spdy/src/main/java/org/glassfish/grizzly/spdy/SpdyStream.java
+++ b/modules/spdy/src/main/java/org/glassfish/grizzly/spdy/SpdyStream.java
@@ -130,9 +130,15 @@ public class SpdyStream implements AttributeStorage, 
OutputSink, Closeable {
     private Set<SpdyStream> associatedSpdyStreams;
         
     public static SpdyStream getSpdyStream(final HttpHeader httpHeader) {
-        final HttpRequestPacket request = httpHeader.isRequest() ?
-                (HttpRequestPacket) httpHeader :
-                ((HttpResponsePacket) httpHeader).getRequest();
+        final HttpRequestPacket request;
+        
+        if (httpHeader.isRequest()) {
+            assert httpHeader instanceof HttpRequestPacket;
+            request = (HttpRequestPacket) httpHeader;
+        } else {
+            assert httpHeader instanceof HttpResponsePacket;
+            request = ((HttpResponsePacket) httpHeader).getRequest();
+        }
         
         
         if (request != null) {





[grizzly~git:30837735] [master] + fix findbugs issues

oleksiys 07/18/2013
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close