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

Simplify javax.swing.text.html.CSS.LengthUnit.getValue

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 25
    • None
    • client-libs

      Static and non-static CSS.LengthUnit.getValue methods essentially do the same thing.
      We can improve them:
      1. delegate one to another to reduce code duplication.
      2. use primitive boolean type as parameter to avoid boxing
      3. take advantage of Map.getOrDefault() to simplify code further

            aturbanov Andrey Turbanov
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: