diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index 367b0e9573b6..78c91c0dd1cf 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1 +1 @@ -distributionUrl=https://maven-central.storage-download.googleapis.com/maven2/org/apache/maven/apache-maven/3.8.4/apache-maven-3.8.4-bin.zip +distributionUrl=https://maven-central.storage-download.googleapis.com/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip diff --git a/microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java b/microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java index fb297e4c19c4..34d89d303029 100644 --- a/microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java +++ b/microbench/src/main/java/io/netty/handler/codec/http/DecodeHexBenchmark.java @@ -16,9 +16,9 @@ package io.netty.handler.codec.http; import io.netty.microbench.util.AbstractMicrobenchmark; +import io.netty.util.internal.MathUtil; import io.netty.util.internal.PlatformDependent; import io.netty.util.internal.StringUtil; -import org.jctools.util.Pow2; import org.openjdk.jmh.annotations.Benchmark; import org.openjdk.jmh.annotations.CompilerControl; import org.openjdk.jmh.annotations.CompilerControl.Mode; @@ -59,7 +59,7 @@ public class DecodeHexBenchmark extends AbstractMicrobenchmark { public void init() { final char[] hexCh = hex.toCharArray(); next = 0; - inputs = Pow2.roundToPowerOfTwo(inputs); + inputs = MathUtil.findNextPositivePowerOfTwo(inputs); hexDigits = new char[inputs][]; hexDigits[0] = hexCh; if (inputs > 1) {