Skip to content

Commit 787533c

Browse files
committed
Remove ValueFactory.newArrayOf
1 parent ed45331 commit 787533c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

msgpack-core/src/main/java/org/msgpack/value/ValueFactory.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,17 @@ public static ImmutableArrayValue newArray(List<? extends Value> list) {
9696
return new ImmutableArrayValueImpl(array);
9797
}
9898

99-
public static ImmutableArrayValue newArray(Value[] array) {
99+
public static ImmutableArrayValue newArray(Value... array) {
100100
if (array.length == 0) {
101101
return ImmutableArrayValueImpl.empty();
102102
}
103103
return new ImmutableArrayValueImpl(Arrays.copyOf(array, array.length));
104104
}
105105

106-
public static ImmutableArrayValue newArrayOf(Value... elem) {
107-
return newArray(elem);
108-
}
109-
110-
111106
public static ImmutableArrayValue emptyArray() {
112107
return ImmutableArrayValueImpl.empty();
113108
}
114109

115-
116110
public static <K extends Value, V extends Value>
117111
ImmutableMapValue newMap(Map<K, V> map) {
118112
Value[] kvs = new Value[map.size() * 2];

0 commit comments

Comments
 (0)