From 7d7d932288d236cfc740294d2a510478de1de44d Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Thu, 15 Aug 2019 09:16:05 +1000 Subject: [PATCH] Issue #3968 - remove public from methods in ReadState Signed-off-by: Lachlan Roberts --- .../eclipse/jetty/websocket/common/io/ReadState.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/io/ReadState.java b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/io/ReadState.java index 5b7bcf9e4e9..e80937700d5 100644 --- a/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/io/ReadState.java +++ b/jetty-websocket/websocket-common/src/main/java/org/eclipse/jetty/websocket/common/io/ReadState.java @@ -28,12 +28,10 @@ class ReadState { private static final Logger LOG = Log.getLogger(ReadState.class); - public static final ByteBuffer NO_ACTION = BufferUtil.EMPTY_BUFFER; - private State state = State.READING; private ByteBuffer buffer; - public ByteBuffer getBuffer() + ByteBuffer getBuffer() { synchronized (this) { @@ -57,7 +55,7 @@ class ReadState } } - public Action getAction(ByteBuffer buffer) + Action getAction(ByteBuffer buffer) { synchronized (this) { @@ -152,7 +150,7 @@ class ReadState } } - public void discard() + void discard() { synchronized (this) { @@ -189,7 +187,7 @@ class ReadState } } - public enum Action + enum Action { FILL, PARSE,