Skip to content

Commit 90ff97b

Browse files
authored
KAFKA-18094 Remove deprecated TopicListing(String, Boolean) (#18248)
Reviewers: Chia-Ping Tsai <[email protected]>
1 parent ec32c8a commit 90ff97b

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

clients/src/main/java/org/apache/kafka/clients/admin/TopicListing.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,6 @@ public class TopicListing {
2727
private final Uuid topicId;
2828
private final boolean internal;
2929

30-
/**
31-
* Create an instance with the specified parameters.
32-
*
33-
* @param name The topic name
34-
* @param internal Whether the topic is internal to Kafka
35-
* @deprecated Since 3.0 use {@link #TopicListing(String, Uuid, boolean)} instead
36-
*/
37-
@Deprecated
38-
public TopicListing(String name, boolean internal) {
39-
this.name = name;
40-
this.internal = internal;
41-
this.topicId = Uuid.ZERO_UUID;
42-
}
43-
4430
/**
4531
* Create an instance with the specified parameters.
4632
*

docs/upgrade.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,9 @@ <h5><a id="upgrade_400_notable" href="#upgrade_400_notable">Notable changes in 4
196196
<code>DEAD</code> if the group ID was not found. In Apache Kafka 4.0, the <code>GroupIdNotFoundException</code>
197197
is thrown instead as part of the support for new types of group.
198198
</li>
199+
<li>The <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, boolean)</code> method were removed.
200+
Please use <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, Uuid, boolean)</code> instead.
201+
</li>
199202
</ul>
200203
</li>
201204
</ul>

0 commit comments

Comments
 (0)