Unecessary null check in BufferConsumer.append()
Brought to you by:
niallg
null check in append() is not necessary since allocate() never returns null.
protected void append(byte[] array, int off, int len) throws IOException {
Buffer buffer = allocate();
//if(buffer != null) {
buffer.append(array, off, len);
//}
}
protected Buffer allocate() throws IOException {
return new ArrayBuffer();
}