We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 290d3d8 commit e110809Copy full SHA for e110809
msgpack-core/src/main/java/org/msgpack/core/MessageUnpacker.java
@@ -607,11 +607,11 @@ public ImmutableValue unpackValue()
607
case BOOLEAN:
608
return ValueFactory.newBoolean(unpackBoolean());
609
case INTEGER:
610
- switch (mf) {
611
- case UINT64:
612
- return ValueFactory.newInteger(unpackBigInteger());
613
- default:
614
- return ValueFactory.newInteger(unpackLong());
+ if (mf == MessageFormat.UINT64) {
+ return ValueFactory.newInteger(unpackBigInteger());
+ }
+ else {
+ return ValueFactory.newInteger(unpackLong());
615
}
616
case FLOAT:
617
return ValueFactory.newFloat(unpackDouble());
0 commit comments