decoderRecycler.set(new SoftReference<BinaryDecoder>(next));
return next;</BUG>
}
public static BinaryDecoder decoder(byte[] buffer, int offset, int len)
{
<BUG>SoftReference<BinaryDecoder> ref = decoderRecycler.get();
BinaryDecoder prev = (ref == null) ? null : ref.get();
if (prev != null) {
return DECODER_FACTORY.binaryDecoder(buffer, offset, len, prev);

}
prev = DECODER_FACTORY.binaryDecoder(buffer, offset, len, null);
decoderRecycler.set(new SoftReference<BinaryDecoder>(prev));
return prev;</BUG>
}

public String getSchemaType() {
return TYPE_ID;
}
public Schema getAvroSchema() { return _avroSchema; }
public static BinaryDecoder decoder(InputStream in, boolean buffering)
{
return buffering
? DECODER_FACTORY.binaryDecoder(in, null)
: DECODER_FACTORY.directBinaryDecoder(in, null);
}
public static BinaryDecoder decoder(byte[] buffer, int offset, int len)
{
return DECODER_FACTORY.binaryDecoder(buffer, offset, len, null);
}
