Yunyung commented on code in PR #20087: URL: https://github.com/apache/kafka/pull/20087#discussion_r2180599991
########## storage/src/main/java/org/apache/kafka/storage/internals/log/LastRecord.java: ########## @@ -23,14 +23,9 @@ * The last written record for a given producer. The last data offset may be undefined * if the only log entry for a producer is a transaction marker. */ -public final class LastRecord { - public final OptionalLong lastDataOffset; - public final short producerEpoch; - - public LastRecord(OptionalLong lastDataOffset, short producerEpoch) { +public record LastRecord(OptionalLong lastDataOffset, short producerEpoch) { Review Comment: Let's remove `equals` and `hashCode`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org