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

Lines changed: 2 additions & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy