From 86029538ee3f24c45adf3755b33005a4fe8cd608 Mon Sep 17 00:00:00 2001 From: Reinier Zwitserloot Date: Thu, 19 Jan 2023 22:55:03 +0100 Subject: [PATCH] to be JDK6-buildable, replace SafeVarargs with SuppressWarnings --- src/utils/lombok/core/LombokImmutableList.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/lombok/core/LombokImmutableList.java b/src/utils/lombok/core/LombokImmutableList.java index 3b9ad89ed0..812ae6cf94 100644 --- a/src/utils/lombok/core/LombokImmutableList.java +++ b/src/utils/lombok/core/LombokImmutableList.java @@ -57,7 +57,8 @@ public static LombokImmutableList of(T a, T b, T c, T d, T e) { return new LombokImmutableList(new Object[] {a, b, c, d, e}); } - @SafeVarargs public static LombokImmutableList of(T a, T b, T c, T d, T e, T f, T... g) { + @SuppressWarnings({"all", "unchecked"}) + 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);