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

Bad variable name in demo code in JavaDoc for TreeItem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: openjfx14
    • Fix Version/s: tbd
    • Component/s: javafx

      Description

      The following code uses a parameter whose name is exactly the same as the type name. Although it is valid, and compiles, this is bad practice, and should be avoided.

                private ObservableList<TreeItem<File>> buildChildren(TreeItem<File> TreeItem) {

      It would be more in line with prevailing practice for the name to begin with a lower case letter.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aghaisas Ajit Ghaisas
              Reporter:
              jjg Jonathan Gibbons
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: