This commit is contained in:
kamhung
2015-11-30 17:59:19 +08:00
parent 05f96ce812
commit 56c458abc1
2 changed files with 2 additions and 2 deletions

View File

@@ -348,7 +348,7 @@ public final class SncpClient {
if (rnameid != nameid) throw new RuntimeException("sncp(" + action.method + ") response.nameid = " + nameid + ", but receive nameid =" + rnameid);
long ractionid1 = buffer.getLong();
long ractionid2 = buffer.getLong();
if (!action.actionid.compare(ractionid1, ractionid2)) throw new RuntimeException("sncp(" + action.method + ") response.actionid = " + action.actionid + ", but request.actionid =(" + ractionid1 + "_" + ractionid2 + ")");
if (!action.actionid.equals(ractionid1, ractionid2)) throw new RuntimeException("sncp(" + action.method + ") response.actionid = " + action.actionid + ", but request.actionid =(" + ractionid1 + "_" + ractionid2 + ")");
buffer.getInt(); //地址
buffer.getChar(); //端口
}

View File

@@ -28,7 +28,7 @@ public final class DLong extends Number implements Comparable<DLong> {
return second;
}
public boolean compare(long one, long two) {
public boolean equals(long one, long two) {
return this.first == one && this.second == two;
}