1
mirror of https://github.com/CarmJos/EasyConfiguration.git synced 2026-06-04 10:38:19 +08:00

fix(builder): Fixed wrong type of serializer

This commit is contained in:
2025-02-17 04:48:15 +08:00
parent 15823bb076
commit c32bea3864
@@ -9,10 +9,10 @@ public interface ValueConsumer<U, T> {
void accept(@NotNull ConfigurationHolder<?> holder, @NotNull U unit, @NotNull T data) throws Exception; void accept(@NotNull ConfigurationHolder<?> holder, @NotNull U unit, @NotNull T data) throws Exception;
default ValueConsumer<U, T> andThen(ValueConsumer<? super T, ? super U> after) { default ValueConsumer<U, T> andThen(ValueConsumer<? super U, ? super T> after) {
return (holder, unit, data) -> { return (holder, unit, data) -> {
accept(holder, unit, data); accept(holder, unit, data);
after.accept(holder, data, unit); after.accept(holder, unit, data);
}; };
} }