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

Avoid redundant String formatting in BigDecimal.valueOf(double)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • core-libs
    • None

      BigDecimal.valueOf(double) uses FormattedFPDecimal to print double to a string, while this utility already has sufficient information to construct a BigDecimal. We can update this factory to use FormattedFPDecimal directly.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: