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

Avoid AtomicReference in TextComponentPrintable

XMLWordPrintable

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

      Field 'sun.swing.text.TextComponentPrintable#frc' is declared as 'AtomicReference<FontRenderContext> frc'.
      But only get() and set() calls are used on this field.
      We can migrate to use volatile field directly. It simplifies code a bit.

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

              Created:
              Updated:
              Resolved: