linu-shibu opened a new pull request, #15620: URL: https://github.com/apache/kafka/pull/15620
RemoteLogMetadata object, and has to dispatch to one of four serializers depending on it's type which is currently done by taking the class name of the RemoteLogMetadata and looking it up in maps to find the corresponding serializer for that class. This later requires an unchecked cast, because the RemoteLogMetadataTransform is generic. This is replaced by if-elseif-else statements which are type-safe. Map lookup is also removed in this new implementation which might make process faster as mentioned in the ticket. ### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) -- 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