Add ByteString.emptyByteString to Java API (#26931)
* Add ByteString.emptyByteString to Java API To work around https://github.com/scala/bug/issues/11509 * Add note to 2.6 migration document
This commit is contained in:
parent
b399e728a2
commit
7b20b89ce0
8 changed files with 24 additions and 9 deletions
|
|
@ -19,6 +19,9 @@ import akka.io.UdpConnected;
|
|||
import akka.io.UdpConnectedMessage;
|
||||
import akka.io.UdpSO;
|
||||
import akka.util.ByteString;
|
||||
|
||||
import static akka.util.ByteString.emptyByteString;
|
||||
|
||||
// #imports
|
||||
|
||||
public class UdpConnectedDocTest {
|
||||
|
|
@ -79,7 +82,7 @@ public class UdpConnectedDocTest {
|
|||
builder.matchEquals(
|
||||
"send",
|
||||
x -> {
|
||||
ByteString data = ByteString.empty();
|
||||
ByteString data = emptyByteString();
|
||||
// #send
|
||||
connectionActor.tell(UdpConnectedMessage.send(data), getSelf());
|
||||
// #send
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue