Change method to be private as otherwise we would need to mark "reply"

volatile to make sure a user will not trigger a race if he call the
method from the outside
This commit is contained in:
Norman Maurer 2012-03-11 20:55:00 +01:00
parent 2b32c3fb59
commit 7040e71131

View File

@ -126,7 +126,7 @@ public class RedisDecoder extends ReplayingDecoder<State> {
return receive(channelBuffer);
}
public MultiBulkReply decodeMultiBulkReply(ChannelBuffer is) throws IOException {
private MultiBulkReply decodeMultiBulkReply(ChannelBuffer is) throws IOException {
if (reply == null) {
reply = new MultiBulkReply();
}