Some small code cleanup
This commit is contained in:
parent
88ecc388d3
commit
7344c7d87c
@ -28,8 +28,6 @@ public class DefaultSpdyNoOpFrame implements SpdyNoOpFrame {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
StringBuilder buf = new StringBuilder();
|
return getClass().getSimpleName();
|
||||||
buf.append(getClass().getSimpleName());
|
|
||||||
return buf.toString();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -43,17 +43,15 @@ final class SpdySession {
|
|||||||
activeStreams.put(new Integer(streamID),
|
activeStreams.put(new Integer(streamID),
|
||||||
new StreamState(remoteSideClosed, localSideClosed));
|
new StreamState(remoteSideClosed, localSideClosed));
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void removeStream(int streamID) {
|
public void removeStream(int streamID) {
|
||||||
activeStreams.remove(new Integer(streamID));
|
activeStreams.remove(new Integer(streamID));
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isRemoteSideClosed(int streamID) {
|
public boolean isRemoteSideClosed(int streamID) {
|
||||||
StreamState state = activeStreams.get(new Integer(streamID));
|
StreamState state = activeStreams.get(new Integer(streamID));
|
||||||
return (state == null) || state.isRemoteSideClosed();
|
return state == null || state.isRemoteSideClosed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closeRemoteSide(int streamID) {
|
public void closeRemoteSide(int streamID) {
|
||||||
@ -69,7 +67,7 @@ final class SpdySession {
|
|||||||
|
|
||||||
public boolean isLocalSideClosed(int streamID) {
|
public boolean isLocalSideClosed(int streamID) {
|
||||||
StreamState state = activeStreams.get(new Integer(streamID));
|
StreamState state = activeStreams.get(new Integer(streamID));
|
||||||
return (state == null) || state.isLocalSideClosed();
|
return state == null || state.isLocalSideClosed();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void closeLocalSide(int streamID) {
|
public void closeLocalSide(int streamID) {
|
||||||
@ -85,7 +83,7 @@ final class SpdySession {
|
|||||||
|
|
||||||
public boolean hasReceivedReply(int streamID) {
|
public boolean hasReceivedReply(int streamID) {
|
||||||
StreamState state = activeStreams.get(new Integer(streamID));
|
StreamState state = activeStreams.get(new Integer(streamID));
|
||||||
return (state != null) && state.hasReceivedReply();
|
return state != null && state.hasReceivedReply();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void receivedReply(int streamID) {
|
public void receivedReply(int streamID) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user