Cleanup of toString() output

This commit is contained in:
Joakim Erdfelt 2015-05-11 13:29:54 -07:00
parent d0251349c5
commit 9261274699
2 changed files with 6 additions and 5 deletions

View File

@ -99,7 +99,8 @@ public final class OpCode
return "CONTINUATION"; return "CONTINUATION";
case TEXT: case TEXT:
return "TEXT"; return "TEXT";
case BINARY: return "BINARY"; case BINARY:
return "BINARY";
case CLOSE: case CLOSE:
return "CLOSE"; return "CLOSE";
case PING: case PING:

View File

@ -330,9 +330,9 @@ public class Parser
policy.getBehavior(), policy.getBehavior(),
OpCode.name(opcode), OpCode.name(opcode),
fin, fin,
(isRsv1InUse()?'1':'.'), (((b & 0x40) != 0)?'1':'.'),
(isRsv2InUse()?'1':'.'), (((b & 0x20) != 0)?'1':'.'),
(isRsv3InUse()?'1':'.')); (((b & 0x10) != 0)?'1':'.'));
// base framing flags // base framing flags
switch(opcode) switch(opcode)
@ -651,7 +651,7 @@ public class Parser
builder.append(",c=").append(cursor); builder.append(",c=").append(cursor);
builder.append(",len=").append(payloadLength); builder.append(",len=").append(payloadLength);
builder.append(",f=").append(frame); builder.append(",f=").append(frame);
builder.append(",p=").append(policy); // builder.append(",p=").append(policy);
builder.append("]"); builder.append("]");
return builder.toString(); return builder.toString();
} }