diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-01-19 22:55:03 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-01-19 22:55:03 +0100 |
commit | 86029538ee3f24c45adf3755b33005a4fe8cd608 (patch) | |
tree | 7bfa74c1308572349e8a1bbf6fc932360e3bfe10 /src/utils/lombok | |
parent | e02d0c64cf9bf08530006268f6a4a4777a5ac3cf (diff) | |
download | lombok-86029538ee3f24c45adf3755b33005a4fe8cd608.tar.gz lombok-86029538ee3f24c45adf3755b33005a4fe8cd608.tar.bz2 lombok-86029538ee3f24c45adf3755b33005a4fe8cd608.zip |
to be JDK6-buildable, replace SafeVarargs with SuppressWarnings
Diffstat (limited to 'src/utils/lombok')
-rw-r--r-- | src/utils/lombok/core/LombokImmutableList.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/utils/lombok/core/LombokImmutableList.java b/src/utils/lombok/core/LombokImmutableList.java index 3b9ad89e..812ae6cf 100644 --- a/src/utils/lombok/core/LombokImmutableList.java +++ b/src/utils/lombok/core/LombokImmutableList.java @@ -57,7 +57,8 @@ public final class LombokImmutableList<T> implements Iterable<T> { return new LombokImmutableList<T>(new Object[] {a, b, c, d, e}); } - @SafeVarargs public static <T> LombokImmutableList<T> of(T a, T b, T c, T d, T e, T f, T... g) { + @SuppressWarnings({"all", "unchecked"}) + public static <T> LombokImmutableList<T> 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); |