From 0a252b48b1eb66e38e1b554b135e56b9d0665337 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 28 Nov 2019 11:31:21 +0100 Subject: [PATCH] Fix compile error in test caused by 2d48ec4e3f2626fbfadf012b3b5184514f90d811 --- .../channel/epoll/EpollDatagramScatteringReadTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDatagramScatteringReadTest.java b/transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDatagramScatteringReadTest.java index 24bb00baaa..0d2d3bc8b6 100644 --- a/transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDatagramScatteringReadTest.java +++ b/transport-native-epoll/src/test/java/io/netty/channel/epoll/EpollDatagramScatteringReadTest.java @@ -215,7 +215,7 @@ public class EpollDatagramScatteringReadTest extends AbstractDatagramTest { try { cb.handler(new SimpleChannelInboundHandler() { @Override - public void channelRead0(ChannelHandlerContext ctx, Object msgs) { + public void messageReceived(ChannelHandlerContext ctx, Object msgs) { // Nothing will be sent. } }); @@ -224,13 +224,13 @@ public class EpollDatagramScatteringReadTest extends AbstractDatagramTest { final AtomicReference errorRef = new AtomicReference(); final byte[] bytes = new byte[packetSize]; - PlatformDependent.threadLocalRandom().nextBytes(bytes); + ThreadLocalRandom.current().nextBytes(bytes); final CountDownLatch latch = new CountDownLatch(1); sb.handler(new SimpleChannelInboundHandler() { @Override - protected void channelRead0(ChannelHandlerContext ctx, DatagramPacket msg) { + protected void messageReceived(ChannelHandlerContext ctx, DatagramPacket msg) { assertEquals(ccAddress, msg.sender()); assertEquals(bytes.length, msg.content().readableBytes());