From 5500f161d7249eefe3fd3363d40a4efe5e2ed8b2 Mon Sep 17 00:00:00 2001 From: Joakim Erdfelt Date: Thu, 8 Aug 2013 09:46:16 -0700 Subject: [PATCH] WebSocket - refining javadoc --- .../java/org/eclipse/jetty/websocket/common/Generator.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/Generator.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/Generator.java index f16e7dec1ef..9b9cc82fec5 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/Generator.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/Generator.java @@ -301,7 +301,7 @@ public class Generator buffer.put((byte)(payloadLength & 0xFF)); } /* - * if payload is ge 126 we have a 7 + 16 bit length + * if payload is greater 126 we have a 7 + 16 bit length */ else if (payloadLength >= 0x7E) { @@ -333,7 +333,7 @@ public class Generator int maskingStartPosition = buffer.position(); // remember the offset within the frame payload (for working with - // windowed frames that don't split on 4 byte barriers) + // masked windowed frames that don't split on 4 byte barriers) int payloadOffset = frame.getPayload().position(); int payloadStart = frame.getPayloadStart(); @@ -360,7 +360,7 @@ public class Generator // mask, using offset information from frame windowing. b ^= mask[posFrame % 4]; - // Mask each byte by its absolute position in the bytebuffer + // Mask each byte by its absolute position in the payload bytebuffer buffer.put(posBuf,b); } }