mirror of
https://github.com/apache/activemq-artemis.git
synced 2025-02-12 21:15:27 +00:00
OpenWireMessageConverter::toAMQMessage on bytes messages is lazy allocating a write buffer with a default size of 1024 even when it won't be used to write anything. It avoid an useless allocation by reducing it to new byte[0].