From 0fa87a36e8f1ea4440f40ea722f32e3891f0d012 Mon Sep 17 00:00:00 2001 From: Tim Hennekey Date: Wed, 15 Jan 2020 13:35:45 -0500 Subject: [PATCH] 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. --- .../test/java/org/archive/util/IdentityCacheableWrapper.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/commons/src/test/java/org/archive/util/IdentityCacheableWrapper.java b/commons/src/test/java/org/archive/util/IdentityCacheableWrapper.java index 60b0e4e7..a93eb6df 100644 --- a/commons/src/test/java/org/archive/util/IdentityCacheableWrapper.java +++ b/commons/src/test/java/org/archive/util/IdentityCacheableWrapper.java @@ -31,6 +31,9 @@ public class IdentityCacheableWrapper implements IdentityCacheable { protected K wrapped; + // For Kryo serialization + IdentityCacheableWrapper() { } + public IdentityCacheableWrapper(String key, K wrapped) { super(); this.wrapped = wrapped;