KAFKA-18292 Remove deprecated methods of UpdateFeaturesOptions (#18245)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
ClarkChen 2024-12-20 11:26:45 +08:00 committed by GitHub
parent 9aa900f076
commit bd27e34f2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 10 deletions

View File

@ -29,20 +29,10 @@ import java.util.Map;
public class UpdateFeaturesOptions extends AbstractOptions<UpdateFeaturesOptions> {
private boolean validateOnly = false;
@Deprecated
public boolean dryRun() {
return validateOnly;
}
public boolean validateOnly() {
return validateOnly;
}
@Deprecated
public UpdateFeaturesOptions dryRun(boolean dryRun) {
return validateOnly(dryRun);
}
public UpdateFeaturesOptions validateOnly(boolean validateOnly) {
this.validateOnly = validateOnly;
return this;

View File

@ -204,6 +204,10 @@
<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>
<li>
The deprecated <code>dryRun</code> methods were removed from the <code>org.apache.kafka.clients.admin.UpdateFeaturesOptions</code>.
Please use <code>validateOnly</code> instead.
</li>
</ul>
</li>
</ul>