diff --git a/triemap/src/main/java/tech/pantheon/triemap/Equivalence.java b/triemap/src/main/java/tech/pantheon/triemap/Equivalence.java index 4e7e980..3d12cce 100644 --- a/triemap/src/main/java/tech/pantheon/triemap/Equivalence.java +++ b/triemap/src/main/java/tech/pantheon/triemap/Equivalence.java @@ -36,11 +36,15 @@ static final class Equals extends Equivalence { static final Equals INSTANCE = new Equals(); @Override - Object readResolve() { + Equivalence resolve() { return INSTANCE; } } @java.io.Serial - abstract Object readResolve(); + final Object readResolve() { + return resolve(); + } + + abstract Equivalence resolve(); }