Merge pull request #697 from CruzBishop/more-checkstyle

Small checkstyle fixes
This commit is contained in:
Norman Maurer 2012-10-30 05:04:27 -07:00
commit a9814fbf93
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>.
* *