Changes made to improve the code readability: - Removed `throws Exception` from the place where there won't be an exception - Removed type arguments where those can be inferred explicit - Rewritten Anonymous classes to Java 8 with lambdas
### Committer Checklist (excluded from commit message) - [ ] Verify design and implementation - [ ] Verify test coverage and CI build status - [ ] Verify documentation (including upgrade notes) [ Full content available at: https://github.com/apache/kafka/pull/5681 ] This message was relayed via gitbox.apache.org for [email protected]
