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

Unnecessary HashTable usage in StyleSheet

XMLWordPrintable

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

      There is a field 'javax.swing.text.html.StyleSheet.SearchBuffer.hashtable' which uses legacy Hashtable class.
      It's used only from single thread. And only non-null key/values added to it. We can safely replace it with HashSet.

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

              Created:
              Updated:
              Resolved: