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";
case TEXT:
return "TEXT";
case BINARY: return "BINARY";
case BINARY:
return "BINARY";
case CLOSE:
return "CLOSE";
case PING:

View File

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