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 @@ -237,13 +237,11 @@ public JsonToken nextToken()
237237 long l = messageUnpacker .unpackLong ();
238238 if (Integer .MIN_VALUE <= l && l <= Integer .MAX_VALUE ) {
239239 type = Type .INT ;
240- intValue = (int )l ;
241- v = intValue ;
240+ v = intValue = (int ) l ;
242241 }
243242 else {
244243 type = Type .LONG ;
245- longValue = l ;
246- v = longValue ;
244+ v = longValue = l ;
247245 }
248246 break ;
249247 }
@@ -281,7 +279,6 @@ public JsonToken nextToken()
281279 case BINARY :
282280 type = Type .BYTES ;
283281 int len = messageUnpacker .unpackBinaryHeader ();
284- // TODO: Optimize
285282 bytesValue = messageUnpacker .readPayload (len );
286283 if (parsingContext .inObject () && _currToken != JsonToken .FIELD_NAME ) {
287284 parsingContext .setCurrentName (new String (bytesValue , MessagePack .UTF8 ));
You can’t perform that action at this time.
0 commit comments