-
Notifications
You must be signed in to change notification settings - Fork 38.8k
Add more lambda expressions in data-access code examples #24398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add more lambda expressions in data-access code examples #24398
Conversation
fix typo on resultSet. inline lambda expressions to be consistent with explanatory text. store row mapper as a final field.
|
@sbrannen anything else? |
Thanks for making the changes. I think that looks pretty good now, and I'll review it locally before merging. |
|
As a side note, the last Kotlin example in this section still uses a local class instead of a lambda expression. I'll see if we can that addressed as well. |
|
thanks for the review! the newer example may not compile though. |
This commit fixes the example by reverting the renaming of the local Actor variable to avoid a conflict with a same-named variable already in the current scope. See gh-24398
You're welcome.
Fixed in b52136d. Thanks again for pointing that out! 👍 |
add more java8 lambda expressions in documentation for data-access