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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 25
    • Affects Version/s: None
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: