add ActorRef.noSender() for the Java API, see #3429
- Actor.noSender is not accessible from Java, but it was in 2.1 so don’t remove - replaced all “null” in doc tests with ActorRef.noSender()
This commit is contained in:
parent
6c96485b26
commit
a2a646af4e
24 changed files with 92 additions and 79 deletions
|
|
@ -83,13 +83,13 @@ public class ZeromqDocTest {
|
|||
//#sub-topic-socket
|
||||
|
||||
//#unsub-topic-socket
|
||||
subTopicSocket.tell(new Unsubscribe("foo.bar"), null);
|
||||
subTopicSocket.tell(new Unsubscribe("foo.bar"), ActorRef.noSender());
|
||||
//#unsub-topic-socket
|
||||
|
||||
byte[] payload = new byte[0];
|
||||
//#pub-topic
|
||||
pubSocket.tell(ZMQMessage.withFrames(ByteString.fromString("foo.bar"),
|
||||
ByteString.fromArray(payload)), null);
|
||||
ByteString.fromArray(payload)), ActorRef.noSender());
|
||||
//#pub-topic
|
||||
|
||||
system.stop(subSocket);
|
||||
|
|
@ -193,7 +193,7 @@ public class ZeromqDocTest {
|
|||
public void preStart() {
|
||||
getContext().system().scheduler()
|
||||
.schedule(Duration.create(1, "second"), Duration.create(1, "second"),
|
||||
getSelf(), TICK, getContext().dispatcher(), null);
|
||||
getSelf(), TICK, getContext().dispatcher(), ActorRef.noSender());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue