diff --git a/microbench/src/main/java/io/netty/microbench/internal/RecyclableArrayListBenchmark.java b/microbench/src/main/java/io/netty/microbench/internal/RecyclableArrayListBenchmark.java index dfb95a6796..32fe2bbeeb 100644 --- a/microbench/src/main/java/io/netty/microbench/internal/RecyclableArrayListBenchmark.java +++ b/microbench/src/main/java/io/netty/microbench/internal/RecyclableArrayListBenchmark.java @@ -36,8 +36,8 @@ public class RecyclableArrayListBenchmark extends AbstractMicrobenchmark { public int size; @Benchmark - public void recycleSameThread() { + public boolean recycleSameThread() { RecyclableArrayList list = RecyclableArrayList.newInstance(size); - list.recycle(); + return list.recycle(); } }