Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263754

HexFormat 'fromHex' methods should be static

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 17
    • core-libs
    • None
    • b16

      A number of HexFormat methods converting from strings to numbers do not use delimiter, prefix, suffix, and uppercase parameters and would be more convenient if the methods were static.

         public boolean isHexDigit(int);
         public int fromHexDigit(int);
         public int fromHexDigits(java.lang.CharSequence);
         public int fromHexDigits(java.lang.CharSequence, int, int);
         public long fromHexDigitsToLong(java.lang.CharSequence);
         public long fromHexDigitsToLong(java.lang.CharSequence, int, int);

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: