From cba9cf1b6c2f98e963ccca7764bc7a331d23ac1c Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Fri, 28 May 2021 09:34:59 +0200 Subject: [PATCH] Fix bad cherry-pick that was done in f9ca270e62a1f81f7003ba8cf633e2b4318ebec9 --- .../io/netty/buffer/WrappedUnpooledUnsafeByteBufTest.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/buffer/src/test/java/io/netty/buffer/WrappedUnpooledUnsafeByteBufTest.java b/buffer/src/test/java/io/netty/buffer/WrappedUnpooledUnsafeByteBufTest.java index dda2b58ff4..810522ec35 100644 --- a/buffer/src/test/java/io/netty/buffer/WrappedUnpooledUnsafeByteBufTest.java +++ b/buffer/src/test/java/io/netty/buffer/WrappedUnpooledUnsafeByteBufTest.java @@ -151,12 +151,7 @@ public class WrappedUnpooledUnsafeByteBufTest extends BigEndianUnsafeDirectByteB @Test @Override public void testGetBytesByteBuffer() { - assertThrows(IndexOutOfBoundsException.class, new Executable() { - @Override - public void execute() { - WrappedUnpooledUnsafeByteBufTest.super.testGetBytesByteBuffer(); - } - }); + assertThrows(IndexOutOfBoundsException.class, super::testGetBytesByteBuffer); } @Test