2

I want to find anonymous classes in some code to see if they should be changed to lambdas for readability's sake. Is there any tool which does this?

1

IntelliJ

The IntelliJ IDE by JetBrains offers such a feature.

Choose Edit > Find > Search Structurally… > (Gear icon menu) > Existing Templates… > Java > Class-based > anonymous classes

See this Answer on Stack Overflow.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.