mirror of https://github.com/apache/kafka.git
MINOR: Replace statement lambda with expression lambda (#11723)
Reviewers: Kvicii <Karonazaba@gmail.com>, David Jacot <djacot@confluent.io>
This commit is contained in:
parent
a47dae4622
commit
31081e6ec4
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue