Bug fix in persistent set add item.

Change-Id: I0de6b27152b4384617689a1db05d9606baf79ec0
This commit is contained in:
Shashikanth VH 2016-04-27 20:05:07 +05:30
parent 4e53f9b14d
commit 1f1c6eef56

View File

@ -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));
}