[MDSAL-692] Use HexFormat to print out byte[] properties Created: 28/Sep/21  Updated: 23/Jun/22  Resolved: 10/May/22

Status: Resolved
Project: mdsal
Component/s: Binding codegen
Affects Version/s: None
Fix Version/s: 10.0.0

Type: Improvement Priority: Medium
Reporter: Robert Varga Assignee: Ivan Martiniak
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: Java 17

 Description   

We are currently using Arrays.toString(byte[]) to format these, which is verbose and not useful for the typical case of binary data, where having unsigned values is much more obvious.

Once we have Java 17's HexFormat at our disposal, use its formatting capabilities to emit reasonably-formatted arrays of hex.

Note we already have an encoding utility available in MD-SAL (in ietf-type-util), hence this is also up for consideration for mdsal-9.0.0.


Generated at Wed Feb 07 20:10:35 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.