Skip to content

Commit 8602953

Browse files
committed
to be JDK6-buildable, replace SafeVarargs with SuppressWarnings
1 parent e02d0c6 commit 8602953

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/lombok/core/LombokImmutableList.java

+2-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ public static <T> LombokImmutableList<T> of(T a, T b, T c, T d, T e) {
5757
return new LombokImmutableList<T>(new Object[] {a, b, c, d, e});
5858
}
5959

60-
@SafeVarargs public static <T> LombokImmutableList<T> of(T a, T b, T c, T d, T e, T f, T... g) {
60+
@SuppressWarnings({"all", "unchecked"})
61+
public static <T> LombokImmutableList<T> of(T a, T b, T c, T d, T e, T f, T... g) {
6162
Object[] rest = g == null ? new Object[] {null} : g;
6263
Object[] val = new Object[rest.length + 6];
6364
System.arraycopy(rest, 0, val, 6, rest.length);

0 commit comments

Comments
 (0)