From e02d0c64cf9bf08530006268f6a4a4777a5ac3cf Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 19 Jan 2023 22:51:24 +0100 Subject: Replace JDK11 code with JDK6 compatible code to avoid warns/errs during dev only. --- src/utils/lombok/core/LombokImmutableList.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/utils/lombok/core') diff --git a/src/utils/lombok/core/LombokImmutableList.java b/src/utils/lombok/core/LombokImmutableList.java index 4603f2ad..3b9ad89e 100644 --- a/src/utils/lombok/core/LombokImmutableList.java +++ b/src/utils/lombok/core/LombokImmutableList.java @@ -57,7 +57,7 @@ public final class LombokImmutableList implements Iterable { return new LombokImmutableList(new Object[] {a, b, c, d, e}); } - public static LombokImmutableList of(T a, T b, T c, T d, T e, T f, T... g) { + @SafeVarargs public static LombokImmutableList of(T a, T b, T c, T d, T e, T f, T... g) { Object[] rest = g == null ? new Object[] {null} : g; Object[] val = new Object[rest.length + 6]; System.arraycopy(rest, 0, val, 6, rest.length); -- cgit