change MessageConverter.fromMessage()'s parameter Type from String to byte[]#534
change MessageConverter.fromMessage()'s parameter Type from String to byte[]#534gepengjun wants to merge 1 commit into
Conversation
|
i want to serialize and deserialize the message with ProtobufMessageConverter so i define RocketMQMessageConverter like this |
RockteMQ-AI
left a comment
There was a problem hiding this comment.
Review: Approved ✅
PR: #534 — Change MessageConverter.fromMessage() parameter type from String to byte[]
Type: Enhancement (1 file, +2/-2)
Assessment
Changes the parameter type to byte[] which is more suitable for all built-in MessageConverter implementations (ByteArray, String, MappingJackson2, MappingFastJson).
Verdict
✅ Correct API improvement. byte[] is the natural message payload type.
🤖 Automated review by oss-sentinel-ai
What is the purpose of the change
i think byte[] is more suitable for the most MessageConverter than String, byte[] is suitable the current MessageConverters such as
ByteArrayMessageConverter, StringMessageConverter, MappingJackson2MessageConverter, MappingFastJsonMessageConverter,
and it is yet suitable for ProtobufMessageConverter;