Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Yuta HIGUCHI
2014-11-25 19:26:01 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ae1d210a8fd4dd80a4ab7a36a181c094bddbfdee
ae1d210a
1 parent
0136562e
Add Collections.emptySet()
Change-Id: I51e845ed69f688a859089a221643fd6d04ac7afa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
core/store/serializers/src/main/java/org/onlab/onos/store/serializers/KryoNamespaces.java
core/store/serializers/src/test/java/org/onlab/onos/store/serializers/KryoSerializerTest.java
core/store/serializers/src/main/java/org/onlab/onos/store/serializers/KryoNamespaces.java
View file @
ae1d210
...
...
@@ -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
();
/**
...
...
core/store/serializers/src/test/java/org/onlab/onos/store/serializers/KryoSerializerTest.java
View file @
ae1d210
...
...
@@ -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
()
{
...
...
Please
register
or
login
to post a comment