Skip to content

Commit

Permalink
Fixes #7818 - Fixing warnings on HttpChannelEventTest
Browse files Browse the repository at this point in the history
Signed-off-by: Joakim Erdfelt <joakim.erdfelt@gmail.com>
  • Loading branch information
joakime committed Apr 6, 2022
1 parent 25fb766 commit 0735508
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -69,7 +69,7 @@ public void testRequestContentSlice() throws Exception
start(new TestHandler()
{
@Override
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException
{
ServletInputStream input = request.getInputStream();
int content = input.read();
Expand Down Expand Up @@ -111,7 +111,7 @@ public void testResponseContentSlice() throws Exception
start(new TestHandler()
{
@Override
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException
{
response.getOutputStream().write(data);
}
Expand Down Expand Up @@ -173,7 +173,7 @@ public void testResponseBeginModifyHeaders() throws Exception
start(new TestHandler()
{
@Override
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
protected void handle(HttpServletRequest request, HttpServletResponse response)
{
response.setCharacterEncoding("utf-8");
response.setContentType("text/plain");
Expand Down Expand Up @@ -221,7 +221,7 @@ public void testResponseFailure() throws Exception
start(new TestHandler()
{
@Override
protected void handle(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException
protected void handle(HttpServletRequest request, HttpServletResponse response)
{
// Closes all connections, response will fail.
connector.getConnectedEndPoints().forEach(EndPoint::close);
Expand Down Expand Up @@ -287,6 +287,7 @@ public void onComplete(Request request)
assertThat(elapsed.get(), Matchers.greaterThan(0L));
}

@SuppressWarnings("deprecation")
@Test
public void testTransientListener() throws Exception
{
Expand Down

0 comments on commit 0735508

Please sign in to comment.