Skip to content

Commit c579cd4

Browse files
committed
java - typo in NotifyMessage.java [#64]
1 parent 74002c4 commit c579cd4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/msgpack/rpc/message/NotifyMessage.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ public void writeTo(Packer pk) throws IOException {
4545
pk.writeArrayBegin(3);
4646
pk.write(Messages.NOTIFY);
4747
pk.write(method);
48-
pk.write(args.length);
48+
pk.writeArrayBegin(args.length);
4949
for (Object arg : args) {
5050
pk.write(arg);
5151
}
5252
pk.writeArrayEnd();
53+
pk.writeArrayEnd();
5354
}
5455

5556
public void readFrom(Unpacker u) throws IOException {

src/main/java/org/msgpack/rpc/message/RequestMessage.java

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ public void writeTo(Packer pk) throws IOException {
5757
pk.write(arg);
5858
}
5959
pk.writeArrayEnd();
60+
pk.writeArrayEnd();
6061
}
6162

6263
public void readFrom(Unpacker u) throws IOException {

0 commit comments

Comments
 (0)