`withCurrentLeaderEpoch(...)` is essentially the same as the following constructor for `PartitionData`. Could you explain a bit why we use a static method instead of constructor?
```
public PartitionData(long timestamp, Optional<Integer>
currentLeaderEpoch) {
this(timestamp, 1, currentLeaderEpoch);
}
```
[ Full content available at: https://github.com/apache/kafka/pull/5564 ]
This message was relayed via gitbox.apache.org for [email protected]
