MINOR: Replace statement lambda with expression lambda (#11723)

Reviewers: Kvicii <Karonazaba@gmail.com>, David Jacot <djacot@confluent.io>
This commit is contained in:
工业废水 2022-02-01 18:03:43 +08:00 committed by GitHub
parent a47dae4622
commit 31081e6ec4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -65,9 +65,7 @@ public class RoundRobinPartitioner implements Partitioner {
}
private int nextValue(String topic) {
AtomicInteger counter = topicCounterMap.computeIfAbsent(topic, k -> {
return new AtomicInteger(0);
});
AtomicInteger counter = topicCounterMap.computeIfAbsent(topic, k -> new AtomicInteger(0));
return counter.getAndIncrement();
}