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

Unnecessary Hashtable usage in javax.swing.text.html.CSS.LengthUnit

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • client-libs

      Two Hashtable's in 'javax.swing.text.html.CSS.LengthUnit' class are modified only within '<clinit>' block:
      1. lengthMapping
      2. w3cLengthMapping

      We can replace them with immutable maps to avoid Hashtable synchronization overhead.

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

              Created:
              Updated: