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

Cleanup/simplify Utils.getBlockTags

XMLWordPrintable

      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.

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

              Created:
              Updated:
              Resolved: