Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 91fe9f4b38cbf781c2968e58de2e6058579db58e 1 parent 90b12ba
@trustin trustin authored
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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.