From fa75c81c6cd450a17515a4e40ca210dcdc7d5f3c Mon Sep 17 00:00:00 2001 From: Chris Vest Date: Wed, 12 May 2021 16:39:27 +0200 Subject: [PATCH] Fix checkstyle issues --- .../io/netty/buffer/api/pool/PoolChunk.java | 3 ++- .../netty/buffer/api/pool/package-info.java | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 src/main/java/io/netty/buffer/api/pool/package-info.java diff --git a/src/main/java/io/netty/buffer/api/pool/PoolChunk.java b/src/main/java/io/netty/buffer/api/pool/PoolChunk.java index 4e8753c..81aef2a 100644 --- a/src/main/java/io/netty/buffer/api/pool/PoolChunk.java +++ b/src/main/java/io/netty/buffer/api/pool/PoolChunk.java @@ -168,7 +168,8 @@ final class PoolChunk implements PoolChunkMetric { PoolChunk prev; PoolChunk next; - PoolChunk(PoolArena arena, Buffer base, Object memory, int pageSize, int pageShifts, int chunkSize, int maxPageIdx) { + PoolChunk(PoolArena arena, Buffer base, Object memory, int pageSize, int pageShifts, int chunkSize, + int maxPageIdx) { this.arena = arena; this.base = base; this.memory = memory; diff --git a/src/main/java/io/netty/buffer/api/pool/package-info.java b/src/main/java/io/netty/buffer/api/pool/package-info.java new file mode 100644 index 0000000..ce60c3b --- /dev/null +++ b/src/main/java/io/netty/buffer/api/pool/package-info.java @@ -0,0 +1,19 @@ +/* + * Copyright 2021 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 + * with the License. You may obtain a copy of the License at: + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ +/** + * A pooling {@link io.netty.buffer.api.BufferAllocator} implementation based on jemalloc. + */ +package io.netty.buffer.api.pool;