Lambda-Expression and final check

46 views
Skip to first unread message

Michael Bohn

unread,
Mar 24, 2015, 9:08:51 AM3/24/15
to check...@googlegroups.com
I have this lambda expression in my code:

fold( ..., ( map, item ) -> {
            ...
 } );

Checkstyle insists (via the FinalLocalVariableCheck) that the variables map and item must be final.
A final modifier is illegal at this point and variables are effective final anyway.
Can I configure checkstyle somehow to ignore parameters in lambda expressions?

Regards,
Michael

Roman Ivanov

unread,
Mar 24, 2015, 9:24:25 AM3/24/15
to Michael Bohn, check...@googlegroups.com
Hi Michael,

fixed already, will be released at the end of month:

thanks,
Roman Ivanov

--
You received this message because you are subscribed to the Google Groups "checkstyle" group.
To unsubscribe from this group and stop receiving emails from it, send an email to checkstyle+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages