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);