Skip to content

Commit 0b50bd7

Browse files
committed
Fix a Vert.x removed API call
1 parent c469f9e commit 0b50bd7

File tree

1 file changed

+2
-1
lines changed
  • vertx/src/main/kotlin/com/huanshankeji/vertx/core

1 file changed

+2
-1
lines changed

vertx/src/main/kotlin/com/huanshankeji/vertx/core/Buffer.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ import io.vertx.core.buffer.impl.BufferImpl
88
* Creates a wrapped [Buffer] so that unnecessary copy is avoided.
99
* Also see https://github.com/eclipse-vertx/vert.x/issues/4407.
1010
*/
11+
@Deprecated("Creating a wrapped buffer seems no longer allowed by Vert.x.")
1112
fun wrappedBuffer(byteArray: ByteArray): Buffer =
12-
BufferImpl.buffer(Unpooled.wrappedBuffer(byteArray))
13+
throw NotImplementedError()

0 commit comments

Comments
 (0)