From 02eea5ac661e2749af86491ac0daeab849af2dbe Mon Sep 17 00:00:00 2001 From: Andrea Cavalli Date: Thu, 17 Oct 2024 23:10:34 +0200 Subject: [PATCH] Allow keys without array --- src/main/java/it/cavallium/rockserver/core/common/Keys.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/it/cavallium/rockserver/core/common/Keys.java b/src/main/java/it/cavallium/rockserver/core/common/Keys.java index 4b35d1d..14466ee 100644 --- a/src/main/java/it/cavallium/rockserver/core/common/Keys.java +++ b/src/main/java/it/cavallium/rockserver/core/common/Keys.java @@ -5,7 +5,7 @@ import java.util.Arrays; import java.util.stream.Collectors; import org.jetbrains.annotations.NotNull; -public record Keys(@NotNull MemorySegment @NotNull [] keys) { +public record Keys(@NotNull MemorySegment @NotNull ... keys) { @Override public String toString() {