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

Unnecessary HashTable usage in StyleSheet

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: