awslabs / amazon-kinesis-client

Client library for Amazon Kinesis
Apache License 2.0
642 stars 465 forks source link

Remove unnecessary lambda #1329

Closed nakulj closed 4 months ago

nakulj commented 4 months ago

Description of changes:

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.

https://errorprone.info/bugpattern/UnnecessaryLambda

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.