From 79d8e89923f1fae063b9f47589191495c9bb248f Mon Sep 17 00:00:00 2001 From: Glavo Date: Tue, 5 Nov 2024 22:07:04 +0800 Subject: [PATCH] Let Range implement Serializable --- kala-base/src/main/java/kala/range/Range.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kala-base/src/main/java/kala/range/Range.java b/kala-base/src/main/java/kala/range/Range.java index 7c037f39..c7fec51f 100644 --- a/kala-base/src/main/java/kala/range/Range.java +++ b/kala-base/src/main/java/kala/range/Range.java @@ -18,7 +18,9 @@ import kala.range.primitive.PrimitiveRange; import org.jetbrains.annotations.NotNull; -public sealed abstract class Range permits GenericRange, PrimitiveRange { +import java.io.Serializable; + +public sealed abstract class Range implements Serializable permits GenericRange, PrimitiveRange { public abstract @NotNull RangeType getType(); public final BoundType getLowerBoundType() {