mirror of
https://github.com/jlengrand/error-prone-support.git
synced 2026-03-10 08:11:25 +00:00
999 B
999 B
layout, title, parent, nav_order
| layout | title | parent | nav_order |
|---|---|---|---|
| default | MethodReferenceUsage | Bug Patterns | 1 |
MethodReferenceUsage
Style
${EXTRA_DOCS}
Samples
```java public static void sample() {} ```
View source code on GitHubMethodReferenceUsage
Prefer method references over lambda expressions
| Severity | SUGGESTION |
| Tags | Style |
Suppression
Suppress false positives by adding the suppression annotation @SuppressWarnings("MethodReferenceUsage") to the enclosing element.