Add default constructor to IdentityCacheWrapper

Kryo is spending a lot of time during serialization handling a
NoSuchMethodException. By adding this default constructor we can skip
doing all that work.
This commit is contained in:
Tim Hennekey
2020-01-15 13:39:27 -05:00
parent 55308ba90a
commit 0fa87a36e8
@@ -31,6 +31,9 @@ public class IdentityCacheableWrapper<K> implements IdentityCacheable {
protected K wrapped;
// For Kryo serialization
IdentityCacheableWrapper() { }
public IdentityCacheableWrapper(String key, K wrapped) {
super();
this.wrapped = wrapped;