We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d591f0c commit 0348a49Copy full SHA for 0348a49
msgpack-core/src/main/java/org/msgpack/value/ValueFactory.java
@@ -232,7 +232,7 @@ public static ImmutableMapValue emptyMap()
232
public static MapValue newMap(Map.Entry<? extends Value, ? extends Value>... pairs)
233
{
234
Value[] kvs = new Value[pairs.length * 2];
235
- for (int i = 0; i < pairs.length; i += 2) {
+ for (int i = 0; i < pairs.length; ++i) {
236
kvs[i * 2] = pairs[i].getKey();
237
kvs[i * 2 + 1] = pairs[i].getValue();
238
}
0 commit comments