diff options
author | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-01-19 22:51:24 +0100 |
---|---|---|
committer | Reinier Zwitserloot <r.zwitserloot@projectlombok.org> | 2023-01-19 22:51:30 +0100 |
commit | e02d0c64cf9bf08530006268f6a4a4777a5ac3cf (patch) | |
tree | d1f870c0dedbebfd4b8d00ebe2b59d3396eba277 /src/utils/lombok/core | |
parent | d3a05b574bd370511726193df619bc03afaaf059 (diff) | |
download | lombok-e02d0c64cf9bf08530006268f6a4a4777a5ac3cf.tar.gz lombok-e02d0c64cf9bf08530006268f6a4a4777a5ac3cf.tar.bz2 lombok-e02d0c64cf9bf08530006268f6a4a4777a5ac3cf.zip |
Replace JDK11 code with JDK6 compatible code to avoid warns/errs during dev only.
Diffstat (limited to 'src/utils/lombok/core')
-rw-r--r-- | src/utils/lombok/core/LombokImmutableList.java | 2 |
1 files changed, 1 insertions, 1 deletions
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<T> implements Iterable<T> { return new LombokImmutableList<T>(new Object[] {a, b, c, d, e}); } - public static <T> LombokImmutableList<T> of(T a, T b, T c, T d, T e, T f, T... g) { + @SafeVarargs 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); |