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

Unnecessary null check in sun.awt.windows.WToolkit.getFontPeer

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 25
    • None
    • client-libs
    • b20

      There is redundant null comparison in sun.awt.windows.WToolkit.getFontPeer
      Local variable retval can't be null after new object assignment.

           retval = new WFontPeer(name, style);
           if (retval != null) {

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

              Created:
              Updated:
              Resolved: