fix error in AnnotatedPartialListenerTest

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2022-09-20 12:32:12 +10:00
parent 88adc23915
commit e43346b042
2 changed files with 2 additions and 18 deletions

View File

@ -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);
}
}

View File

@ -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);
}
}