Renamed enum constant.

This commit is contained in:
Simone Bordet 2012-06-01 17:46:39 +02:00
parent 85e2503eec
commit d12c2fec21
1 changed files with 6 additions and 6 deletions

View File

@ -24,7 +24,7 @@ import org.eclipse.jetty.spdy.frames.GoAwayFrame;
public class GoAwayBodyParser extends ControlFrameBodyParser public class GoAwayBodyParser extends ControlFrameBodyParser
{ {
private final ControlFrameParser controlFrameParser; private final ControlFrameParser controlFrameParser;
private State state = State.LAST_STREAM_ID; private State state = State.LAST_GOOD_STREAM_ID;
private int cursor; private int cursor;
private int lastStreamId; private int lastStreamId;
private int statusCode; private int statusCode;
@ -41,7 +41,7 @@ public class GoAwayBodyParser extends ControlFrameBodyParser
{ {
switch (state) switch (state)
{ {
case LAST_STREAM_ID: case LAST_GOOD_STREAM_ID:
{ {
if (buffer.remaining() >= 4) if (buffer.remaining() >= 4)
{ {
@ -66,12 +66,12 @@ public class GoAwayBodyParser extends ControlFrameBodyParser
} }
else else
{ {
state = State.LAST_STREAM_ID_BYTES; state = State.LAST_GOOD_STREAM_ID_BYTES;
cursor = 4; cursor = 4;
} }
break; break;
} }
case LAST_STREAM_ID_BYTES: case LAST_GOOD_STREAM_ID_BYTES:
{ {
byte currByte = buffer.get(); byte currByte = buffer.get();
--cursor; --cursor;
@ -144,7 +144,7 @@ public class GoAwayBodyParser extends ControlFrameBodyParser
private void reset() private void reset()
{ {
state = State.LAST_STREAM_ID; state = State.LAST_GOOD_STREAM_ID;
cursor = 0; cursor = 0;
lastStreamId = 0; lastStreamId = 0;
statusCode = 0; statusCode = 0;
@ -152,6 +152,6 @@ public class GoAwayBodyParser extends ControlFrameBodyParser
private enum State private enum State
{ {
LAST_STREAM_ID, LAST_STREAM_ID_BYTES, STATUS_CODE, STATUS_CODE_BYTES LAST_GOOD_STREAM_ID, LAST_GOOD_STREAM_ID_BYTES, STATUS_CODE, STATUS_CODE_BYTES
} }
} }