mirror of https://github.com/apache/kafka.git
KAFKA-18292 Remove deprecated methods of UpdateFeaturesOptions (#18245)
Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
parent
9aa900f076
commit
bd27e34f2d
|
@ -29,20 +29,10 @@ import java.util.Map;
|
||||||
public class UpdateFeaturesOptions extends AbstractOptions<UpdateFeaturesOptions> {
|
public class UpdateFeaturesOptions extends AbstractOptions<UpdateFeaturesOptions> {
|
||||||
private boolean validateOnly = false;
|
private boolean validateOnly = false;
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public boolean dryRun() {
|
|
||||||
return validateOnly;
|
|
||||||
}
|
|
||||||
|
|
||||||
public boolean validateOnly() {
|
public boolean validateOnly() {
|
||||||
return validateOnly;
|
return validateOnly;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Deprecated
|
|
||||||
public UpdateFeaturesOptions dryRun(boolean dryRun) {
|
|
||||||
return validateOnly(dryRun);
|
|
||||||
}
|
|
||||||
|
|
||||||
public UpdateFeaturesOptions validateOnly(boolean validateOnly) {
|
public UpdateFeaturesOptions validateOnly(boolean validateOnly) {
|
||||||
this.validateOnly = validateOnly;
|
this.validateOnly = validateOnly;
|
||||||
return this;
|
return this;
|
||||||
|
|
|
@ -204,6 +204,10 @@
|
||||||
<li>The <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, boolean)</code> method were removed.
|
<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.
|
Please use <code>org.apache.kafka.clients.admin.TopicListing.TopicListing(String, Uuid, boolean)</code> instead.
|
||||||
</li>
|
</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>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue