Removed a SuppressWarnings which old eclipse doesn't care about for some reason... now I'm just confused. Do we need it or not?

This commit is contained in:
Reinier Zwitserloot committed 2013-06-16 13:20:53 +02:00
1 parent b3dac7722e
commit bf43dc7477
1 file changed
+1 -1
+1 -1
View File
@@ -57,7 +57,7 @@ public final class ImmutableList<T> implements Iterable<T> {
return new ImmutableList<T>(new Object[] {a, b, c, d, e});
}
public static <T> ImmutableList<T> of(T a, T b, T c, T d, T e, T f, @SuppressWarnings("unchecked") T... g) {
public static <T> ImmutableList<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);