mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 18:34:03 +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:
1 parent
55308ba90a
commit
0fa87a36e8
1 file changed
+3
@@ -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