Inspectopedia
 
2024.3

Redundant SAM constructor

Warning
New
Last modified: 03 December 2024

Reports SAM (Single Abstract Method) constructor usages which can be replaced with lambdas.

Example:

After the quick-fix is applied: