From 94c63dc03c3323ec70d805bb55a551496b6d89c9 Mon Sep 17 00:00:00 2001 From: Siphalor Date: Sat, 2 May 2026 19:26:53 +0200 Subject: [PATCH] fix(core): Correct `MutableStructuredConfigEntry#apply` return type to self --- CHANGELOG.md | 4 ++++ .../tweed5/core/api/entry/MutableStructuredConfigEntry.java | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6283f00..716e9c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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-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 ### Fixed diff --git a/tweed5/core/src/main/java/de/siphalor/tweed5/core/api/entry/MutableStructuredConfigEntry.java b/tweed5/core/src/main/java/de/siphalor/tweed5/core/api/entry/MutableStructuredConfigEntry.java index a2d19f7..d6fa52c 100644 --- a/tweed5/core/src/main/java/de/siphalor/tweed5/core/api/entry/MutableStructuredConfigEntry.java +++ b/tweed5/core/src/main/java/de/siphalor/tweed5/core/api/entry/MutableStructuredConfigEntry.java @@ -6,7 +6,7 @@ import java.util.function.Consumer; public interface MutableStructuredConfigEntry extends AddressableStructuredConfigEntry { @Override - default AddressableStructuredConfigEntry apply(Consumer> function) { + default MutableStructuredConfigEntry apply(Consumer> function) { AddressableStructuredConfigEntry.super.apply(function); return this; }