kevin-wu24 commented on code in PR #19589: URL: https://github.com/apache/kafka/pull/19589#discussion_r2078015675
########## raft/src/main/java/org/apache/kafka/raft/KafkaNetworkChannel.java: ########## @@ -178,6 +182,7 @@ public void pollOnce() { requestThread.doWork(); } + @SuppressWarnings("NPathComplexity") Review Comment: > Try using if (...) { return } else if (...) { return } ... and see if that reduces the path complexity so you can remove this suppression. This worked, thanks! -- 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