KAFKA-18094 Remove deprecated TopicListing(String, Boolean) (#18248)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
Chung, Ming-Yen 2024-12-18 18:45:21 +08:00 committed by GitHub
parent ec32c8a376
commit 90ff97b51d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 14 deletions

View File

@ -27,20 +27,6 @@ public class TopicListing {
private final Uuid topicId;
private final boolean internal;
/**
* Create an instance with the specified parameters.
*
* @param name The topic name
* @param internal Whether the topic is internal to Kafka
* @deprecated Since 3.0 use {@link #TopicListing(String, Uuid, boolean)} instead
*/
@Deprecated
public TopicListing(String name, boolean internal) {
this.name = name;
this.internal = internal;
this.topicId = Uuid.ZERO_UUID;
}
/**
* Create an instance with the specified parameters.
*

View File

@ -196,6 +196,9 @@
<code>DEAD</code> if the group ID was not found. In Apache Kafka 4.0, the <code>GroupIdNotFoundException</code>
is thrown instead as part of the support for new types of group.
</li>
<li>The <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, boolean)</code> method were removed.
Please use <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, Uuid, boolean)</code> instead.
</li>
</ul>
</li>
</ul>