提交 45ff40c5 authored 作者: Noel Grandin's avatar Noel Grandin

suppress some "heap pollution" compile warnings

上级 e79a7c8a
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
package org.h2.dev.util; package org.h2.dev.util;
import java.util.Iterator; import java.util.Iterator;
import org.h2.mvstore.DataUtils; import org.h2.mvstore.DataUtils;
/** /**
...@@ -111,6 +110,7 @@ public final class ImmutableArray<K> implements Iterable<K> { ...@@ -111,6 +110,7 @@ public final class ImmutableArray<K> implements Iterable<K> {
* @param array the data * @param array the data
* @return the new immutable array * @return the new immutable array
*/ */
@SafeVarargs
public static <K> ImmutableArray<K> create(K... array) { public static <K> ImmutableArray<K> create(K... array) {
return new ImmutableArray<K>(array); return new ImmutableArray<K>(array);
} }
......
...@@ -8,7 +8,6 @@ package org.h2.dev.util; ...@@ -8,7 +8,6 @@ package org.h2.dev.util;
import java.util.Arrays; import java.util.Arrays;
import java.util.Iterator; import java.util.Iterator;
import java.util.concurrent.atomic.AtomicBoolean; import java.util.concurrent.atomic.AtomicBoolean;
import org.h2.mvstore.DataUtils; import org.h2.mvstore.DataUtils;
/** /**
...@@ -151,6 +150,7 @@ public final class ImmutableArray2<K> implements Iterable<K> { ...@@ -151,6 +150,7 @@ public final class ImmutableArray2<K> implements Iterable<K> {
* @param array the data * @param array the data
* @return the new immutable array * @return the new immutable array
*/ */
@SafeVarargs
public static <K> ImmutableArray2<K> create(K... array) { public static <K> ImmutableArray2<K> create(K... array) {
return new ImmutableArray2<K>(array, array.length); return new ImmutableArray2<K>(array, array.length);
} }
......
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
package org.h2.dev.util; package org.h2.dev.util;
import java.util.Iterator; import java.util.Iterator;
import org.h2.mvstore.DataUtils; import org.h2.mvstore.DataUtils;
/** /**
...@@ -84,6 +83,7 @@ public abstract class ImmutableArray3<K> implements Iterable<K> { ...@@ -84,6 +83,7 @@ public abstract class ImmutableArray3<K> implements Iterable<K> {
* @param array the data * @param array the data
* @return the new immutable array * @return the new immutable array
*/ */
@SafeVarargs
public static <K> ImmutableArray3<K> create(K... array) { public static <K> ImmutableArray3<K> create(K... array) {
return new Plain<K>(array); return new Plain<K>(array);
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论