pipeline return formatted values

This commit is contained in:
Jonathan Leibiusky
2011-04-06 01:07:20 -03:00
parent ff50c17238
commit 6707b62342
9 changed files with 729 additions and 726 deletions

View File

@@ -175,19 +175,7 @@ public class Connection {
}
public List<String> getMultiBulkReply() {
final List<byte[]> bresult = getBinaryMultiBulkReply();
if (null == bresult) {
return null;
}
final ArrayList<String> result = new ArrayList<String>(bresult.size());
for (final byte[] barray : bresult) {
if (barray == null) {
result.add(null);
} else {
result.add(SafeEncoder.encode(barray));
}
}
return result;
return BuilderFactory.STRING_LIST.build(getBinaryMultiBulkReply());
}
@SuppressWarnings("unchecked")