Skip to main content Link Search Menu Expand Document (external link)

MethodReferenceUsage

SUGGESTION

Style

View source code on GitHub

Summary

Prefer method references over lambda expressions

Suppression

Suppress false positives by adding the suppression annotation @SuppressWarnings("MethodReferenceUsage") to the enclosing element.

Disable this pattern completely by adding -Xep:MethodReferenceUsage:OFF as compiler argument. Learn more.


Copyright © 2017-2023 Picnic Technologies BV