Small checkstyle fixes

Netty can build again, now.

Signed-off-by: Cruz Julian Bishop <cruzjbishop@gmail.com>
This commit is contained in:
Cruz Julian Bishop 2012-10-30 21:57:26 +10:00
parent 92f7069076
commit 93d0226c03
No known key found for this signature in database
GPG Key ID: 573EAF1939711DAA
2 changed files with 10 additions and 10 deletions

View File

@ -41,14 +41,14 @@ public class SpdyHttpResponseStreamIdHandler extends
@Override @Override
public Object encode(ChannelHandlerContext ctx, Object msg) throws Exception { public Object encode(ChannelHandlerContext ctx, Object msg) throws Exception {
if (msg instanceof HttpMessage) { if (msg instanceof HttpMessage) {
boolean contains = ((HttpMessage)msg).containsHeader(SpdyHttpHeaders.Names.STREAM_ID); boolean contains = ((HttpMessage) msg).containsHeader(SpdyHttpHeaders.Names.STREAM_ID);
if (!contains) { if (!contains) {
ids.add(NO_ID); ids.add(NO_ID);
} else { } else {
ids.add(SpdyHttpHeaders.getStreamId((HttpMessage) msg)); ids.add(SpdyHttpHeaders.getStreamId((HttpMessage) msg));
} }
} else if (msg instanceof SpdyRstStreamFrame) { } else if (msg instanceof SpdyRstStreamFrame) {
ids.remove(((SpdyRstStreamFrame)msg).getStreamId()); ids.remove(((SpdyRstStreamFrame) msg).getStreamId());
} }
return msg; return msg;

View File

@ -31,7 +31,7 @@
* *
* <p>04. Install Twisted: <tt>sudo apt-get install python-twisted</tt> * <p>04. Install Twisted: <tt>sudo apt-get install python-twisted</tt>
* *
* <p>05. Install AutoBahn: <tt>sudo easy_install autobahntestsuite</tt>. Test using <tt>wstest --help<tt>. * <p>05. Install AutoBahn: <tt>sudo easy_install autobahntestsuite</tt>. Test using <tt>wstest --help</tt>.
* *
* <p>06. Create a directory for test configuration and results: <tt>mkdir autobahn</tt> <tt>cd autobahn</tt>. * <p>06. Create a directory for test configuration and results: <tt>mkdir autobahn</tt> <tt>cd autobahn</tt>.
* *