JDK-8222817 : Refactor printing processor to use streams
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: javax.annotation.processing
  • Affected Version: 13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-04-22
  • Updated: 2019-05-02
  • Resolved: 2019-04-23
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13
13 b18Fixed
Related Reports
Relates :  
Relates :  
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.
Comments
Review thread: https://mail.openjdk.java.net/pipermail/compiler-dev/2019-April/013248.html
22-04-2019