File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
msgpack-jackson/src/main/java/org/msgpack/jackson/dataformat Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -231,13 +231,11 @@ public JsonToken nextToken()
231231 long l = messageUnpacker .unpackLong ();
232232 if (Integer .MIN_VALUE <= l && l <= Integer .MAX_VALUE ) {
233233 type = Type .INT ;
234- intValue = (int )l ;
235- v = intValue ;
234+ v = intValue = (int ) l ;
236235 }
237236 else {
238237 type = Type .LONG ;
239- longValue = l ;
240- v = longValue ;
238+ v = longValue = l ;
241239 }
242240 break ;
243241 }
@@ -275,7 +273,6 @@ public JsonToken nextToken()
275273 case BINARY :
276274 type = Type .BYTES ;
277275 int len = messageUnpacker .unpackBinaryHeader ();
278- // TODO: Optimize
279276 bytesValue = messageUnpacker .readPayload (len );
280277 if (parsingContext .inObject () && _currToken != JsonToken .FIELD_NAME ) {
281278 parsingContext .setCurrentName (new String (bytesValue , MessagePack .UTF8 ));
You can’t perform that action at this time.
0 commit comments