Skip to content

Commit b696235

Browse files
authored
Merge pull request msgpack#457 from xuwei-k/SafeVarargs
add SafeVarargs annotation
2 parents b79f4a0 + 6da8716 commit b696235

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,7 @@ public static ImmutableMapValue emptyMap()
228228
return ImmutableMapValueImpl.empty();
229229
}
230230

231+
@SafeVarargs
231232
public static MapValue newMap(Map.Entry<? extends Value, ? extends Value>... pairs)
232233
{
233234
Value[] kvs = new Value[pairs.length * 2];

0 commit comments

Comments
 (0)