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

This commit is contained in:
Trustin Lee 2012-06-12 21:20:27 +09:00
parent 90b12ba5d2
commit 91fe9f4b38
3 changed files with 3 additions and 3 deletions

View File

@ -306,7 +306,7 @@ final class SpdyCodecUtil {
/**
* 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 File

@ -72,7 +72,7 @@ public class SpdyHttpDecoder extends MessageToMessageDecoder<Object, HttpMessage
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 File

@ -714,7 +714,7 @@ public class SpdySessionHandler
*/
private boolean isRemoteInitiatedID(int ID) {
boolean serverID = SpdyCodecUtil.isServerID(ID);
boolean serverID = SpdyCodecUtil.isServerId(ID);
return server && !serverID || !server && serverID;
}