Skip to content

Commit

Permalink
KAFKA-18292 Remove deprecated methods of UpdateFeaturesOptions (#18245)
Browse files Browse the repository at this point in the history
Reviewers: Chia-Ping Tsai <[email protected]>
  • Loading branch information
clarkwtc authored Dec 20, 2024
1 parent 9aa900f commit bd27e34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,10 @@
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;
Expand Down
4 changes: 4 additions & 0 deletions docs/upgrade.html
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,10 @@ <h5><a id="upgrade_400_notable" href="#upgrade_400_notable">Notable changes in 4
<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>
Expand Down

0 comments on commit bd27e34

Please sign in to comment.