File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
msgpack-core/src/main/java/org/msgpack/value Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 ];
You can’t perform that action at this time.
0 commit comments