From fccbb7a418240258c3ae3610df1ede707e7d60b1 Mon Sep 17 00:00:00 2001 From: Anatoly Date: Wed, 17 Jul 2024 23:38:25 +0300 Subject: [PATCH] updated README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 765e30d..f8da11b 100644 --- a/README.md +++ b/README.md @@ -91,8 +91,8 @@ Stream users = db.select("SELECT * FROM USERS") // etc... return attr; }) - .groupingBy(UserAttr::userId, Function::identity); - batchOfUsers.forEach(user -> user.addAttrs(attrs.getOrDefault(user.getId, Collections.emptyList()))); + .groupingBy(UserAttr::userId, Function.identity()); + batchOfUsers.forEach(user -> user.addAttrs(attrs.getOrDefault(user.getId(), Collections.emptyList()))); }); // stream of users objects will consist of updated (enriched) objects ```