diff --git a/src/test/java/io/netty/buffer/api/benchmarks/ByteIterationBenchmark.java b/src/test/java/io/netty/buffer/api/benchmarks/ByteIterationBenchmark.java index 51fc78b..a0bfe37 100644 --- a/src/test/java/io/netty/buffer/api/benchmarks/ByteIterationBenchmark.java +++ b/src/test/java/io/netty/buffer/api/benchmarks/ByteIterationBenchmark.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 The Netty Project + * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance diff --git a/src/test/java/io/netty/buffer/api/benchmarks/MemSegBufAccessBenchmark.java b/src/test/java/io/netty/buffer/api/benchmarks/MemSegBufAccessBenchmark.java index e64b136..b7aa090 100644 --- a/src/test/java/io/netty/buffer/api/benchmarks/MemSegBufAccessBenchmark.java +++ b/src/test/java/io/netty/buffer/api/benchmarks/MemSegBufAccessBenchmark.java @@ -1,5 +1,5 @@ /* -* Copyright 2019 The Netty Project +* Copyright 2020 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance diff --git a/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentCloseBenchmark.java b/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentCloseBenchmark.java index 03fa577..7c7da97 100644 --- a/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentCloseBenchmark.java +++ b/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentCloseBenchmark.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 The Netty Project + * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance diff --git a/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentClosedByCleanerBenchmark.java b/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentClosedByCleanerBenchmark.java index f623a51..ad2e73b 100644 --- a/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentClosedByCleanerBenchmark.java +++ b/src/test/java/io/netty/buffer/api/benchmarks/MemorySegmentClosedByCleanerBenchmark.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 The Netty Project + * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance diff --git a/src/test/java/io/netty/buffer/api/benchmarks/SendBenchmark.java b/src/test/java/io/netty/buffer/api/benchmarks/SendBenchmark.java index 558c742..432e337 100644 --- a/src/test/java/io/netty/buffer/api/benchmarks/SendBenchmark.java +++ b/src/test/java/io/netty/buffer/api/benchmarks/SendBenchmark.java @@ -1,5 +1,5 @@ /* - * Copyright 2019 The Netty Project + * Copyright 2020 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance @@ -40,9 +40,9 @@ import static java.util.concurrent.CompletableFuture.completedFuture; @OutputTimeUnit(TimeUnit.MICROSECONDS) @State(Scope.Benchmark) public class SendBenchmark { - private static final Allocator nonPooled = Allocator.heap(); - private static final Allocator pooled = Allocator.pooledHeap(); - private static final Function, Send> bounce = send -> { + private static final Allocator NON_POOLED = Allocator.heap(); + private static final Allocator POOLED = Allocator.pooledHeap(); + private static final Function, Send> BUFFER_BOUNCE = send -> { try (Buf buf = send.receive()) { return buf.send(); } @@ -50,8 +50,8 @@ public class SendBenchmark { @Benchmark public Buf sendNonPooled() throws Exception { - try (Buf buf = nonPooled.allocate(8)) { - try (Buf receive = completedFuture(buf.send()).thenApplyAsync(bounce).get().receive()) { + try (Buf buf = NON_POOLED.allocate(8)) { + try (Buf receive = completedFuture(buf.send()).thenApplyAsync(BUFFER_BOUNCE).get().receive()) { return receive; } } @@ -59,8 +59,8 @@ public class SendBenchmark { @Benchmark public Buf sendPooled() throws Exception { - try (Buf buf = pooled.allocate(8)) { - try (Buf receive = completedFuture(buf.send()).thenApplyAsync(bounce).get().receive()) { + try (Buf buf = POOLED.allocate(8)) { + try (Buf receive = completedFuture(buf.send()).thenApplyAsync(BUFFER_BOUNCE).get().receive()) { return receive; } }