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

Unused parameter to Tokens.Token.comment method

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 22
    • 22
    • tools
    • b19

    Description

      In the following, the parameter `style` is unused. Fortunately, it is always set to
      Comment.CommentStyle.JAVADOC.

              /**
               * Preserve classic semantics - if multiple javadocs are found on the token
               * the last one is returned
               */
              public Comment comment(Comment.CommentStyle style) {
                  List<Comment> comments = getComments(Comment.CommentStyle.JAVADOC);
                  return comments.isEmpty() ?
                          null :
                          comments.head;
              }

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: