GitHub user ijuma opened a pull request: https://github.com/apache/kafka/pull/3945
MINOR: Move ChannelState.exception() to its own class Given that Java doesn't support pattern matching, the benefit is not as clear. Also implemented ChannelState.toString and removed some unused imports. You can merge this pull request into a Git repository by running: $ git pull https://github.com/ijuma/kafka improve-channel-state-structure Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/3945.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #3945 ---- commit 78a04b1044b7d987a057a74361a5372feded30de Author: Ismael Juma <ism...@juma.me.uk> Date: 2017-09-22T09:36:52Z MINOR: Move ChannelState.exception() to its own class Given that Java doesn't support pattern matching, the benefit is not as clear. Also implemented ChannelState.toString and removed some unused imports. ---- ---