From e43346b042232a240cb1fb797bee0e748e8ae703 Mon Sep 17 00:00:00 2001 From: Lachlan Roberts Date: Tue, 20 Sep 2022 12:32:12 +1000 Subject: [PATCH] fix error in AnnotatedPartialListenerTest Signed-off-by: Lachlan Roberts --- .../websocket/tests/AnnotatedPartialListenerTest.java | 10 +--------- .../websocket/tests/AnnotatedPartialListenerTest.java | 10 +--------- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/jetty-ee10/jetty-ee10-websocket/jetty-ee10-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee10/websocket/tests/AnnotatedPartialListenerTest.java b/jetty-ee10/jetty-ee10-websocket/jetty-ee10-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee10/websocket/tests/AnnotatedPartialListenerTest.java index 768af6760d2..8d5148d2055 100644 --- a/jetty-ee10/jetty-ee10-websocket/jetty-ee10-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee10/websocket/tests/AnnotatedPartialListenerTest.java +++ b/jetty-ee10/jetty-ee10-websocket/jetty-ee10-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee10/websocket/tests/AnnotatedPartialListenerTest.java @@ -13,7 +13,6 @@ package org.eclipse.jetty.ee10.websocket.tests; -import java.io.IOException; import java.net.URI; import java.nio.ByteBuffer; import java.util.Objects; @@ -62,14 +61,7 @@ public class AnnotatedPartialListenerTest @Override public void onWebSocketPartialText(String payload, boolean fin) { - try - { - session.getRemote().sendPartialString(payload, fin, WriteCallback.NOOP); - } - catch (IOException e) - { - throw new IllegalStateException(e); - } + session.getRemote().sendPartialString(payload, fin, WriteCallback.NOOP); } } diff --git a/jetty-ee9/jetty-ee9-websocket/jetty-ee9-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee9/websocket/tests/AnnotatedPartialListenerTest.java b/jetty-ee9/jetty-ee9-websocket/jetty-ee9-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee9/websocket/tests/AnnotatedPartialListenerTest.java index e9d50c85bb2..d007469e041 100644 --- a/jetty-ee9/jetty-ee9-websocket/jetty-ee9-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee9/websocket/tests/AnnotatedPartialListenerTest.java +++ b/jetty-ee9/jetty-ee9-websocket/jetty-ee9-websocket-jetty-tests/src/test/java/org/eclipse/jetty/ee9/websocket/tests/AnnotatedPartialListenerTest.java @@ -13,7 +13,6 @@ package org.eclipse.jetty.ee9.websocket.tests; -import java.io.IOException; import java.net.URI; import java.nio.ByteBuffer; import java.util.Objects; @@ -62,14 +61,7 @@ public class AnnotatedPartialListenerTest @Override public void onWebSocketPartialText(String payload, boolean fin) { - try - { - session.getRemote().sendPartialString(payload, fin, WriteCallback.NOOP); - } - catch (IOException e) - { - throw new IllegalStateException(e); - } + session.getRemote().sendPartialString(payload, fin, WriteCallback.NOOP); } }