fix(core): Correct MutableStructuredConfigEntry#apply return type to self

This commit is contained in:
2026-05-02 19:26:53 +02:00
parent a085a2acc6
commit 94c63dc03c
2 changed files with 5 additions and 1 deletions
+4
View File
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `weaver-pojo`: Make maps with string keys into their own weavable entry type. - `weaver-pojo`: Make maps with string keys into their own weavable entry type.
- `weaver-pojo-serde-ext`: Such string map entries get serde using the `MutableStructuredConfigEntry` interface. - `weaver-pojo-serde-ext`: Such string map entries get serde using the `MutableStructuredConfigEntry` interface.
### Fixed
- `core`: Fixed return type of `MutableStructuredConfigEntry#apply` to correctly be itself.
## [0.8.1] - 2026-04-26 ## [0.8.1] - 2026-04-26
### Fixed ### Fixed
@@ -6,7 +6,7 @@ import java.util.function.Consumer;
public interface MutableStructuredConfigEntry<T> extends AddressableStructuredConfigEntry<T> { public interface MutableStructuredConfigEntry<T> extends AddressableStructuredConfigEntry<T> {
@Override @Override
default AddressableStructuredConfigEntry<T> apply(Consumer<ConfigEntry<T>> function) { default MutableStructuredConfigEntry<T> apply(Consumer<ConfigEntry<T>> function) {
AddressableStructuredConfigEntry.super.apply(function); AddressableStructuredConfigEntry.super.apply(function);
return this; return this;
} }