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

Refactor printing processor to use streams

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 13
    • 13
    • core-libs

    Description

      The printing annotation processor, used for both the javac -Xprint option and the implementation of javax.lang.model.util.Elements.print, has a number of for-loops with logic to include or exclude separators/terminators and surrounding text based on position. Such logic can be more concisely expressed using stream and collectors.

      Attachments

        Issue Links

          Activity

            People

              darcy Joe Darcy
              darcy Joe Darcy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: