mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 06:36:12 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user