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

Remove outdated comment in OutlineTextRenderer

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 26
    • 26
    • client-libs
    • None
    • 2d
    • 26
    • master

      Until JDK-4138921, `TextLayout` did not accept empty strings in the constructor. This limitation has been removed. However, there is a guard condition in `OutlineTextRenderer` which checks for an empty string before trying to use `TextLayout` which explicitly calls out this limitation in a code comment. We should remove the out-of-date comment but leave the check in as an optimization (see discussion in the PR comments for JDK-4138921).

            dgredler Daniel Gredler
            dgredler Daniel Gredler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: