mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
Bug fix in persistent set add item.
Change-Id: I0de6b27152b4384617689a1db05d9606baf79ec0
This commit is contained in:
parent
4e53f9b14d
commit
1f1c6eef56
@ -112,7 +112,7 @@ public class PersistentSet<E> implements Set<E> {
|
||||
|
||||
@Override
|
||||
public boolean add(E item) {
|
||||
checkNotNull("Item to be added cannot be null.");
|
||||
checkNotNull(item, "Item to be added cannot be null.");
|
||||
return items.add(serializer.encode(item));
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user