Skip to content

Commit

Permalink
Fix Equivalence.readResolve()
Browse files Browse the repository at this point in the history
We have a warning about abstract readResolve(). Fix it by making it
final and bounce through another abstract method.

Signed-off-by: Robert Varga <[email protected]>
  • Loading branch information
rovarga committed Jun 30, 2024
1 parent 7ce54f0 commit 2b9522e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions triemap/src/main/java/tech/pantheon/triemap/Equivalence.java
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

0 comments on commit 2b9522e

Please sign in to comment.