Some small code cleanup

This commit is contained in:
Norman Maurer 2012-02-04 16:02:44 +01:00
parent 88ecc388d3
commit 7344c7d87c
2 changed files with 4 additions and 8 deletions

View File

@ -28,8 +28,6 @@ public class DefaultSpdyNoOpFrame implements SpdyNoOpFrame {
@Override
public String toString() {
StringBuilder buf = new StringBuilder();
buf.append(getClass().getSimpleName());
return buf.toString();
return getClass().getSimpleName();
}
}

View File

@ -43,17 +43,15 @@ final class SpdySession {
activeStreams.put(new Integer(streamID),
new StreamState(remoteSideClosed, localSideClosed));
}
return;
}
public void removeStream(int streamID) {
activeStreams.remove(new Integer(streamID));
return;
}
public boolean isRemoteSideClosed(int streamID) {
StreamState state = activeStreams.get(new Integer(streamID));
return (state == null) || state.isRemoteSideClosed();
return state == null || state.isRemoteSideClosed();
}
public void closeRemoteSide(int streamID) {
@ -69,7 +67,7 @@ final class SpdySession {
public boolean isLocalSideClosed(int streamID) {
StreamState state = activeStreams.get(new Integer(streamID));
return (state == null) || state.isLocalSideClosed();
return state == null || state.isLocalSideClosed();
}
public void closeLocalSide(int streamID) {
@ -85,7 +83,7 @@ final class SpdySession {
public boolean hasReceivedReply(int streamID) {
StreamState state = activeStreams.get(new Integer(streamID));
return (state != null) && state.hasReceivedReply();
return state != null && state.hasReceivedReply();
}
public void receivedReply(int streamID) {