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

Specify the 1-1 relationship between DocTree.Kind and DocTree subtypes

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Given the desire to use instanceof patterns these days, we should add text somewhere, such as in the `package-info` for `com.sun.source.doctree` to specify a 1-1 relationship between DocTree subtypes and DocTree.Kind.

      Maybe it's already there, in a subtle form, in the doc comment for the members of DocTree.Kind, but it would not be bad to make it more explicit.

            Unassigned Unassigned
            jjg Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: