serverID -> serverId (#393 Ensure all fields follow naming convention)
This commit is contained in:
parent
90b12ba5d2
commit
91fe9f4b38
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user