Skip to content

Commit

Permalink
Update to Maven 3.8.5 (netty#12314)
Browse files Browse the repository at this point in the history
Motivation:
We should keep our Maven Wrapper up-to-date

Modification:
- Bumped Maven Wrapper to v3.8.5
- Not use jctools in microbenchmark module

Result:
Latest Maven release

Co-authored-by: Norman Maurer <[email protected]>
  • Loading branch information
hyperxpro and normanmaurer authored Apr 21, 2022
1 parent 40ce84c commit bed7051
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .mvn/wrapper/maven-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit bed7051

Please sign in to comment.