Unused parameter to Tokens.Token.comment method

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: 22
    • Component/s: 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;
              }

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

              Created:
              Updated:
              Resolved: