Remove the AbstracLifecycleComponent constructor with Settings (#37523)
Adding the migration guide and removing the deprecated in 6.x constructor relates #35560 relates #34488
This commit is contained in:
parent
18a3e48a4a
commit
b6e5ccaf8a
|
@ -38,4 +38,10 @@ because `Settings` is no longer needed.
|
|||
==== Deprecated method `Client#termVector` removed
|
||||
|
||||
The client method `termVector`, deprecated in 2.0, has been removed. The method
|
||||
`termVectors` (plural) should be used instead.
|
||||
`termVectors` (plural) should be used instead.
|
||||
|
||||
[float]
|
||||
==== Deprecated constructor `AbstractLifecycleComponent(Settings settings)` removed
|
||||
|
||||
The constructor `AbstractLifecycleComponent(Settings settings)`, deprecated in 6.7
|
||||
has been removed. The parameterless constructor should be used instead.
|
||||
|
|
|
@ -21,7 +21,6 @@ package org.elasticsearch.common.component;
|
|||
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
@ -36,11 +35,6 @@ public abstract class AbstractLifecycleComponent implements LifecycleComponent {
|
|||
|
||||
protected AbstractLifecycleComponent() {}
|
||||
|
||||
@Deprecated
|
||||
protected AbstractLifecycleComponent(Settings settings) {
|
||||
// TODO drop settings from ctor
|
||||
}
|
||||
|
||||
@Override
|
||||
public Lifecycle.State lifecycleState() {
|
||||
return this.lifecycle.state();
|
||||
|
|
Loading…
Reference in New Issue