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

TextInputControl JavaDoc says empty prompts are null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Description

      It is minor, but if you look at the code for TextInputControl, it is clear that the JavaDoc says empty prompt texts are null, while the code actually implements an empty String. I think the code is fine, but the JavaDoc needs to be updated.

          /**
           * The prompt text to display in the {@code TextInputControl}, or
           * <tt>null</tt> if no prompt text is displayed.
           * @since JavaFX 2.2
           */
          private StringProperty promptText = new SimpleStringProperty(this, "promptText", "") {

        Attachments

          Activity

            People

            Assignee:
            jgiles Jonathan Giles
            Reporter:
            risaksen Randahl Isaksen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: