spullara/netty — comment on commit 1faf2ffa4aa9a4106932f0d7002b534033015c1a
File: src/main/java/org/jboss/netty/handler/codec/redis/RedisDecoder.java line 124
By normanmaurer:

You should use "is.readByte() & 0xff;" here and also should check if ChannelBuffer.isReadable() and if not return -1. Anyway if you just use org.jboss.netty.buffer.ChannelBufferInputStream you don't neet to care about it to much.