MINOR: Remove casts to KRaftMetadataCache#18579
Conversation
4bd584e to
acd0980
Compare
acd0980 to
abc37bd
Compare
|
@ijuma I'm curious as to why this PR doesn't remove the casting from https://github.com/apache/kafka/blob/trunk/core/src/main/scala/kafka/cluster/Partition.scala#L1060 |
|
I looked for casts vs pattern matching. I agree we should also clean up the latter. For your second example, not sure why it didn't show up in the search I used. |
Thank you for your quick response. I was wondering if there was a specific reason for keeping them. @FrankYang0529 will cleanup it in https://issues.apache.org/jira/browse/KAFKA-18555 |
Reviewers: Mickael Maison <mickael.maison@gmail.com>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
Reviewers: Mickael Maison <mickael.maison@gmail.com>
Committer Checklist (excluded from commit message)