Mirai1129 opened a new pull request, #22944:
URL: https://github.com/apache/kafka/pull/22944

   `constantPartitioner` used a lambda, which implicitly overrides the 
deprecated 4-arg `StreamPartitioner#partitions(String, K, V, int)`.
   Since a lambda cannot be annotated with `@Deprecated`, the warning could not 
be suppressed via the lambda itself.
   
   Replaced the lambda with an anonymous class that implements the new 5-arg 
`partitions(String, K, V, Headers, int)` method, and kept the deprecated 4-arg 
override (annotated `@Deprecated`) delegating to it for source compatibility.


-- 
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]

Reply via email to