mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-14 12:16:49 +00:00
to be JDK6-buildable, replace SafeVarargs with SuppressWarnings
This commit is contained in:
1 file changed
+2
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user