Permalink
Browse files

serverID -> serverId (#393 Ensure all fields follow naming convention)

  • Loading branch information...
1 parent 90b12ba commit 91fe9f4b38cbf781c2968e58de2e6058579db58e @trustin trustin committed Jun 12, 2012
View
2 codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyCodecUtil.java
@@ -306,7 +306,7 @@ static int getSignedInt(ByteBuf buf, int offset) {
/**
* Returns {@code true} if ID is for a server initiated stream or ping.
*/
- static boolean isServerID(int ID) {
+ static boolean isServerId(int ID) {
// Server initiated streams and pings have even IDs
return ID % 2 == 0;
}
View
2 codec-http/src/main/java/io/netty/handler/codec/spdy/SpdyHttpDecoder.java
@@ -72,7 +72,7 @@ public HttpMessage decode(ChannelHandlerContext ctx, Object msg) throws Exceptio
SpdySynStreamFrame spdySynStreamFrame = (SpdySynStreamFrame) msg;
int streamID = spdySynStreamFrame.getStreamId();
- if (SpdyCodecUtil.isServerID(streamID)) {
+ if (SpdyCodecUtil.isServerId(streamID)) {
// SYN_STREAM frames initiated by the server are pushed resources
int associatedToStreamId = spdySynStreamFrame.getAssociatedToStreamId();
View
2 codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySessionHandler.java
@@ -714,7 +714,7 @@ private void issueStreamError(
*/
private boolean isRemoteInitiatedID(int ID) {
- boolean serverID = SpdyCodecUtil.isServerID(ID);
+ boolean serverID = SpdyCodecUtil.isServerId(ID);
return server && !serverID || !server && serverID;
}

0 comments on commit 91fe9f4

Please sign in to comment.