Fix compile errors introduced by bad cherry-picks (#10391)

This commit is contained in:
Norman Maurer 2020-07-06 13:22:31 +02:00 committed by GitHub
parent 9955ef563e
commit f8b3a388ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -197,7 +197,7 @@ public class DiskFileUploadTest {
DiskFileUpload f1 = new DiskFileUpload("file3", "file3", "application/json", null, null, 0);
try {
byte[] bytes = new byte[4096];
PlatformDependent.threadLocalRandom().nextBytes(bytes);
ThreadLocalRandom.current().nextBytes(bytes);
final ByteBuf buffer;

View File

@ -18,6 +18,7 @@ package io.netty.util;
import static java.util.Objects.requireNonNull;
import io.netty.util.internal.ObjectUtil;
import io.netty.util.internal.PlatformDependent;
import io.netty.util.internal.SystemPropertyUtil;
import io.netty.util.internal.logging.InternalLogger;