Yuta HIGUCHI

Add Collections.emptySet()

Change-Id: I51e845ed69f688a859089a221643fd6d04ac7afa
......@@ -153,6 +153,7 @@ public final class KryoNamespaces {
.register(new ArraysAsListSerializer(), Arrays.asList().getClass())
.register(Collections.singletonList(1).getClass())
.register(Duration.class)
.register(Collections.emptySet().getClass())
.build();
/**
......
......@@ -72,6 +72,7 @@ import org.onlab.util.KryoNamespace;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
......@@ -342,6 +343,10 @@ public class KryoSerializerTest {
testSerializedEquals(new DefaultGroupId(99));
}
@Test
public void testEmptySet() {
testSerializedEquals(Collections.emptySet());
}
@Test
public void testAnnotations() {
......