1111import java .nio .MappedByteBuffer ;
1212import java .nio .channels .FileChannel ;
1313import java .nio .channels .FileChannel .MapMode ;
14- import java .nio .charset .Charset ;
1514import java .nio .charset .StandardCharsets ;
1615import java .util .HashMap ;
1716import java .util .Map ;
@@ -274,19 +273,19 @@ private static Map<ObjectNode, byte[]> maps() {
274273 ObjectNode one = om .createObjectNode ();
275274 one .put ("en" , "Foo" );
276275 maps .put (one , new byte []{(byte ) 0xe1 , /* en */ 0x42 , 0x65 , 0x6e ,
277- /* Foo */ 0x43 , 0x46 , 0x6f , 0x6f });
276+ /* Foo */ 0x43 , 0x46 , 0x6f , 0x6f });
278277
279278 ObjectNode two = om .createObjectNode ();
280279 two .put ("en" , "Foo" );
281280 two .put ("zh" , "人" );
282281 maps .put (two , new byte []{(byte ) 0xe2 ,
283- /* en */
282+ /* en */
284283 0x42 , 0x65 , 0x6e ,
285- /* Foo */
284+ /* Foo */
286285 0x43 , 0x46 , 0x6f , 0x6f ,
287- /* zh */
286+ /* zh */
288287 0x42 , 0x7a , 0x68 ,
289- /* 人 */
288+ /* 人 */
290289 0x43 , (byte ) 0xe4 , (byte ) 0xba , (byte ) 0xba });
291290
292291 ObjectNode nested = om .createObjectNode ();
@@ -295,11 +294,11 @@ private static Map<ObjectNode, byte[]> maps() {
295294 maps .put (nested , new byte []{(byte ) 0xe1 , /* name */
296295 0x44 , 0x6e , 0x61 , 0x6d , 0x65 , (byte ) 0xe2 ,/* en */
297296 0x42 , 0x65 , 0x6e ,
298- /* Foo */
297+ /* Foo */
299298 0x43 , 0x46 , 0x6f , 0x6f ,
300- /* zh */
299+ /* zh */
301300 0x42 , 0x7a , 0x68 ,
302- /* 人 */
301+ /* 人 */
303302 0x43 , (byte ) 0xe4 , (byte ) 0xba , (byte ) 0xba });
304303
305304 ObjectNode guess = om .createObjectNode ();
@@ -309,11 +308,11 @@ private static Map<ObjectNode, byte[]> maps() {
309308 guess .set ("languages" , languages );
310309 maps .put (guess , new byte []{(byte ) 0xe1 ,/* languages */
311310 0x49 , 0x6c , 0x61 , 0x6e , 0x67 , 0x75 , 0x61 , 0x67 , 0x65 , 0x73 ,
312- /* array */
311+ /* array */
313312 0x2 , 0x4 ,
314- /* en */
313+ /* en */
315314 0x42 , 0x65 , 0x6e ,
316- /* zh */
315+ /* zh */
317316 0x42 , 0x7a , 0x68 });
318317
319318 return maps ;
@@ -326,16 +325,16 @@ private static Map<ArrayNode, byte[]> arrays() {
326325 ArrayNode f1 = om .createArrayNode ();
327326 f1 .add ("Foo" );
328327 arrays .put (f1 , new byte []{0x1 , 0x4 ,
329- /* Foo */
328+ /* Foo */
330329 0x43 , 0x46 , 0x6f , 0x6f });
331330
332331 ArrayNode f2 = om .createArrayNode ();
333332 f2 .add ("Foo" );
334333 f2 .add ("人" );
335334 arrays .put (f2 , new byte []{0x2 , 0x4 ,
336- /* Foo */
335+ /* Foo */
337336 0x43 , 0x46 , 0x6f , 0x6f ,
338- /* 人 */
337+ /* 人 */
339338 0x43 , (byte ) 0xe4 , (byte ) 0xba , (byte ) 0xba });
340339
341340 ArrayNode empty = om .createArrayNode ();
0 commit comments