JDK 13 RFR of JDK-8222817 : Refactor printing processor to use streams
Joe Darcy
joe.darcy at oracle.com
Mon Apr 22 21:57:36 UTC 2019
On 4/22/2019 1:58 PM, Jonathan Gibbons wrote:
> If you're going all-in modernizing the code, you can use method
> references for ::toString in a couple of place.
>
> -- Jon
Update as suggested:
http://cr.openjdk.java.net/~darcy/8222817.1/
Diff of patches:
22c22
< + .map(m -> m.toString())
---
> + .map(Modifier::toString)
63c63
< + .map(annotationMirror -> annotationMirror.toString())
---
> + .map(AnnotationMirror::toString)
86c86
< + .map(interf -> interf.toString())
---
> + .map(TypeMirror::toString)
Thanks,
-Joe
More information about the compiler-dev
mailing list