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

Cleanup/simplify Utils.getBlockTags

    Details

      Description

      Utils provides overloaded methods to access the block tags in the doc comments for an element.

      The code is very string-oriented, and uses .toUpperCase, Enum.valueOf, and making lists twice.

      It can be simplified, partly by using streams and predicates as filters, and partly by better leveraging taglets and DocTree.Kind to find the matching tags.

        Attachments

          Activity

            People

            • Assignee:
              jjg Jonathan Gibbons
              Reporter:
              jjg Jonathan Gibbons
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: