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

Unused parameter to Tokens.Token.comment method

XMLWordPrintable

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

      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;
              }

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

              Created:
              Updated:
              Resolved: