Skip to content

Commit

Permalink
Move VertxByteBufAllocator from internal to impl scope
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Oct 29, 2024
1 parent e37ebff commit d49eb4c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import io.vertx.core.buffer.Buffer;
import io.vertx.core.internal.buffer.BufferInternal;
import io.vertx.core.impl.Arguments;
import io.vertx.core.internal.buffer.VertxByteBufAllocator;
import io.vertx.core.impl.buffer.VertxByteBufAllocator;
import io.vertx.core.json.JsonArray;
import io.vertx.core.json.JsonObject;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


import io.netty.buffer.*;
import io.vertx.core.internal.buffer.VertxByteBufAllocator;
import io.vertx.core.impl.buffer.VertxByteBufAllocator;

/**
* A {@link io.netty.buffer.ByteBufAllocator} which is partial pooled. Which means only direct {@link io.netty.buffer.ByteBuf}s are pooled. The rest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import io.vertx.core.VertxException;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.internal.buffer.BufferInternal;
import io.vertx.core.internal.buffer.VertxByteBufAllocator;
import io.vertx.core.impl.buffer.VertxByteBufAllocator;
import io.vertx.core.http.GoAway;
import io.vertx.core.http.HttpClosedException;
import io.vertx.core.http.HttpConnection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
*/
package io.vertx.core.internal.buffer;
package io.vertx.core.impl.buffer;

import io.netty.buffer.AbstractByteBufAllocator;
import io.netty.buffer.ByteBuf;
Expand All @@ -25,8 +25,8 @@ public abstract class VertxByteBufAllocator extends AbstractByteBufAllocator {
* Vert.x pooled allocator.
*/
public static final ByteBufAllocator POOLED_ALLOCATOR = new PooledByteBufAllocator(true);

/**
*
* Vert.x shared un-pooled allocator.
*/
public static final ByteBufAllocator UNPOOLED_ALLOCATOR = new UnpooledByteBufAllocator(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import io.netty.channel.ChannelPromise;
import io.netty.handler.timeout.IdleStateEvent;
import io.vertx.core.Handler;
import io.vertx.core.internal.buffer.VertxByteBufAllocator;
import io.vertx.core.impl.buffer.VertxByteBufAllocator;

import java.util.function.Function;

Expand Down
1 change: 1 addition & 0 deletions vertx-core/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,6 @@
exports io.vertx.core.spi.cluster.impl.selector to io.vertx.core.tests;
exports io.vertx.core.impl.verticle to io.vertx.core.tests;
exports io.vertx.core.impl.deployment to io.vertx.core.tests;
exports io.vertx.core.impl.buffer to io.vertx.core.tests;

}

0 comments on commit d49eb4c

Please sign in to comment.