Skip to content

Commit

Permalink
Error out on unnecessary lambda (#4835)
Browse files Browse the repository at this point in the history
snazy authored Aug 1, 2022

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent f03d912 commit 2fdb7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codestyle/errorprone-rules.properties
Original file line number Diff line number Diff line change
@@ -1161,7 +1161,7 @@ URLEqualsHashCode=ERROR
#UnnecessaryAssignment=WARN
# Fields annotated with @Inject/@Mock should not be manually assigned to, as they should be initialized by a framework. Remove the assignment if a framework is being used, or the annotation if one isn't.

#UnnecessaryLambda=WARN
UnnecessaryLambda=ERROR
# Returning a lambda from a helper method or saving it in a constant is unnecessary; prefer to implement the functional interface method directly and use a method reference instead.

#UnnecessaryLongToIntConversion=WARN

0 comments on commit 2fdb7e2

Please sign in to comment.