diff --git a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Frame.java b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Frame.java index d6aa16ea395..519e1bc2ed7 100644 --- a/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Frame.java +++ b/jetty-websocket/websocket-api/src/main/java/org/eclipse/jetty/websocket/api/extensions/Frame.java @@ -65,7 +65,7 @@ public interface Frame public boolean isData() { - return (opcode == TEXT.getOpCode()) | (opcode == BINARY.getOpCode()); + return (opcode == TEXT.getOpCode()) || (opcode == BINARY.getOpCode()); } public boolean isContinuation()