[ 
https://issues.apache.org/jira/browse/SAMZA-735?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14640478#comment-14640478
 ] 

József Márton Jung commented on SAMZA-735:
------------------------------------------

[~gustavoanatoly], I tested Apache Commons Lang's {{reflectionToString}} on 
byte arrays, and it outputs something like this:
{noformat}
IncomingMessageEnvelope [systemStreamPartition=SystemStreamPartition [system, 
stream, 0], offset=null, key={55,9,102,-111,108,23,50,-88,38,45}, 
message={55,9,102,-111,108,23,50,-88,38,45}]
{noformat}
It is more readable now (the values of the array are shown as decimal values), 
but I don't know (at the moment) if this information is valuable or not.

What do you guys think? Should we use the {{ToStringBuilder}} as a one-fit-all 
method?



> Change IncomingMessageEnvelope.toString to be more readable.
> ------------------------------------------------------------
>
>                 Key: SAMZA-735
>                 URL: https://issues.apache.org/jira/browse/SAMZA-735
>             Project: Samza
>          Issue Type: Improvement
>            Reporter: Gustavo Anatoly
>            Assignee: Gustavo Anatoly
>            Priority: Trivial
>
> toString output:
> IncomingMessageEnvelope [systemStreamPartition=SystemStreamPartition [system, 
> stream, 0], offset=null, key=[B@1880249c, message=[B@4e38a55]



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to