getIntegerReply should return Integer and not int to support null replies

This commit is contained in:
Jonathan Leibiusky
2010-11-02 12:33:28 -03:00
parent d70c42edb9
commit 07f5820a32
2 changed files with 209 additions and 206 deletions

View File

@@ -126,9 +126,9 @@ public class Connection {
return (String) protocol.read(inputStream);
}
public int getIntegerReply() {
public Integer getIntegerReply() {
pipelinedCommands--;
return ((Integer) protocol.read(inputStream)).intValue();
return (Integer) protocol.read(inputStream);
}
@SuppressWarnings("unchecked")