Skip to content

Commit

Permalink
Update to Netty API removal from public API
Browse files Browse the repository at this point in the history
  • Loading branch information
vietj committed Jul 26, 2023
1 parent 4c40828 commit df92131
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
import com.mongodb.client.gridfs.model.GridFSUploadOptions;
import com.mongodb.reactivestreams.client.gridfs.GridFSBucket;
import com.mongodb.reactivestreams.client.gridfs.GridFSDownloadPublisher;
import io.vertx.core.AsyncResult;
import io.vertx.core.Future;
import io.vertx.core.Handler;
import io.vertx.core.Promise;
import io.vertx.core.buffer.Buffer;
import io.vertx.core.buffer.impl.BufferInternal;
import io.vertx.core.file.OpenOptions;
import io.vertx.core.impl.VertxInternal;
import io.vertx.core.json.JsonObject;
Expand Down Expand Up @@ -226,7 +225,7 @@ private static class MapAndCountBuffer implements Function<ByteBuffer, Buffer> {

@Override
public Buffer apply(ByteBuffer bb) {
Buffer buffer = Buffer.buffer(copiedBuffer(bb));
Buffer buffer = BufferInternal.buffer(copiedBuffer(bb));
count += buffer.length();
return buffer;
}
Expand All @@ -235,8 +234,7 @@ public Buffer apply(ByteBuffer bb) {
private static class MapBuffer implements Function<ByteBuffer, Buffer> {
@Override
public Buffer apply(ByteBuffer bb) {
Buffer buffer = Buffer.buffer(copiedBuffer(bb));
return buffer;
return BufferInternal.buffer(copiedBuffer(bb));
}
}
}

0 comments on commit df92131

Please sign in to comment.