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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P5
    • 25
    • Affects Version/s: None
    • Component/s: 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) {

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

              Created:
              Updated:
              Resolved: