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

Use HexFormat to print out byte[] properties

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 10.0.0
    • None
    • Binding codegen

      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.

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

              Created:
              Updated:
              Resolved: