File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
msgpack-core/src/main/java/org/msgpack/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -506,7 +506,7 @@ else if (s.length() < (1 << 8)) {
506506 // move 1 byte backward to expand 3-byte header region to 3 bytes
507507 buffer .putBytes (position + 3 ,
508508 buffer .array (), buffer .arrayOffset () + position + 2 , written );
509- // write 3-byte header header
509+ // write 3-byte header
510510 buffer .putByte (position ++, STR16 );
511511 buffer .putShort (position , (short ) written );
512512 position += 2 ;
@@ -516,7 +516,7 @@ else if (s.length() < (1 << 8)) {
516516 }
517517 }
518518 else if (s .length () < (1 << 16 )) {
519- // ensure capacity for 3-byte raw string header + the maximum string size (+ 2 bytes for falback code)
519+ // ensure capacity for 3-byte raw string header + the maximum string size (+ 2 bytes for fallback code)
520520 ensureCapacity (3 + s .length () * UTF_8_MAX_CHAR_SIZE + 2 );
521521 // keep 3-byte header region and write raw string
522522 int written = encodeStringToBufferAt (position + 3 , s );
You can’t perform that action at this time.
0 commit comments