[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. |