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

Refactor printing processor to use streams

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 13
    • Fix Version/s: 13
    • Component/s: core-libs
    • Labels:

      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: