From 03d37b58f25db17c8fb44f4b3e0f33f2c2a72249 Mon Sep 17 00:00:00 2001 From: Jesse McConnell Date: Thu, 28 Jun 2012 16:06:39 -0500 Subject: [PATCH] switch from short to char to sidestep short java signage --- .../java/org/eclipse/jetty/websocket/frames/CloseFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/frames/CloseFrame.java b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/frames/CloseFrame.java index a18db11a8de..2877a4527ba 100644 --- a/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/frames/CloseFrame.java +++ b/jetty-websocket/websocket-core/src/main/java/org/eclipse/jetty/websocket/frames/CloseFrame.java @@ -55,7 +55,7 @@ public class CloseFrame extends ControlFrame } ByteBuffer payload = ByteBuffer.allocate(len); - payload.putShort((short)statusCode); + payload.putChar((char)statusCode); if (utf != null) { payload.put(utf,0,utf.length);