Skip to content

Commit b6e5cca

Browse files
authored
Remove the AbstracLifecycleComponent constructor with Settings (#37523)
Adding the migration guide and removing the deprecated in 6.x constructor relates #35560 relates #34488
1 parent 18a3e48 commit b6e5cca

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/reference/migration/migrate_7_0/java.asciidoc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,10 @@ because `Settings` is no longer needed.
3838
==== Deprecated method `Client#termVector` removed
3939

4040
The client method `termVector`, deprecated in 2.0, has been removed. The method
41-
`termVectors` (plural) should be used instead.
41+
`termVectors` (plural) should be used instead.
42+
43+
[float]
44+
==== Deprecated constructor `AbstractLifecycleComponent(Settings settings)` removed
45+
46+
The constructor `AbstractLifecycleComponent(Settings settings)`, deprecated in 6.7
47+
has been removed. The parameterless constructor should be used instead.

server/src/main/java/org/elasticsearch/common/component/AbstractLifecycleComponent.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121

2222
import org.apache.logging.log4j.LogManager;
2323
import org.apache.logging.log4j.Logger;
24-
import org.elasticsearch.common.settings.Settings;
2524

2625
import java.io.IOException;
2726
import java.util.List;
@@ -36,11 +35,6 @@ public abstract class AbstractLifecycleComponent implements LifecycleComponent {
3635

3736
protected AbstractLifecycleComponent() {}
3837

39-
@Deprecated
40-
protected AbstractLifecycleComponent(Settings settings) {
41-
// TODO drop settings from ctor
42-
}
43-
4438
@Override
4539
public Lifecycle.State lifecycleState() {
4640
return this.lifecycle.state();

0 commit comments

Comments
 (0)