Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-692

Use HexFormat to print out byte[] properties

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 10.0.0
    • Binding codegen

    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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            ivanm1996 Ivan Martiniak
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: