ijuma commented on code in PR #15958:
URL: https://github.com/apache/kafka/pull/15958#discussion_r1668682320
##########
core/src/main/scala/kafka/network/RequestChannel.scala:
##########
@@ -171,7 +170,7 @@ object RequestChannel extends Logging {
s"$forwardDescription$header -- ${loggableRequest.toString(details)}"
}
- def body[T <: AbstractRequest](implicit classTag: ClassTag[T],
@nowarn("cat=unused") nn: NotNothing[T]): T = {
+ def body[T <: AbstractRequest](implicit classTag: ClassTag[T]): T = {
Review Comment:
Why did we remove this? It was there for a reason (to prevent cases where
`ClassTag` is automatically inferred to `Nothing`). Same for all other similar
cases.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]