roundTrip(12, 12, new String[] {"11", "2222", "3", "4"});
roundTrip(11, 11, new String[] {"11", "2222", null, "4"});
roundTrip(28, 51,
new Object[] {new String[] {"11", "2222", null, "4"}, new int[] {1, 2, 3, 4}, new int[][] { {1, 2}, {100, 4}}});
ObjectArraySerializer serializer = new ObjectArraySerializer(kryo, String[].class);
kryo.register(String[].class, serializer);
serializer.setElementsAreSameType(true);
roundTrip(11, 11, new String[] {"11", "2222", null, "4"});
serializer.setElementsAreSameType(false);
roundTrip(11, 11, new String[] {"11", "2222", null, "4"});
roundTrip(5, 5, new String[] {null, null, null});
roundTrip(2, 2, new String[] {});
serializer.setElementsAreSameType(true);
roundTrip(12, 12, new String[] {"11", "2222", "3", "4"});
serializer.setElementsCanBeNull(false);
roundTrip(12, 12, new String[] {"11", "2222", "3", "4"});
serializer = new ObjectArraySerializer(kryo, Float[].class);
kryo.register(Float[][].class, serializer);
kryo.register(Float[].class, serializer);
Float[][] array = new Float[4][];
array[0] = new Float[] {0.0f, 1.0f};
array[1] = null;