dengziming commented on a change in pull request #9769:
URL: https://github.com/apache/kafka/pull/9769#discussion_r547021462
##########
File path:
clients/src/main/java/org/apache/kafka/clients/admin/DescribeTopicsResult.java
##########
@@ -31,29 +31,29 @@
* The API of this class is evolving, see {@link Admin} for details.
*/
@InterfaceStability.Evolving
-public class DescribeTopicsResult {
- private final Map<String, KafkaFuture<TopicDescription>> futures;
+public class DescribeTopicsResult<T> {
Review comment:
I first tried a new class `DescribeTopicsResultWithIds` and find it's
almost the same as `DescribeTopicsResult`, so I just use parameterization. We
only need to change `DescribeTopicsResult` to `DescribeTopicsResult<String>`
when using old clients.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]