From 0a8943783c0a1e6124e9c36cf8d7318cc41c9e9b Mon Sep 17 00:00:00 2001 From: homebeaver Date: Thu, 10 Oct 2024 19:40:55 +0200 Subject: [PATCH] implement Serializable, restore previous version --- .../validator/routines/checkdigit/Modulus97CheckDigit.java | 6 +++++- .../validator/routines/checkdigit/VATidBECheckDigit.java | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java b/src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java index 13cfff820..ac1a62ea1 100644 --- a/src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java +++ b/src/main/java/org/apache/commons/validator/routines/checkdigit/Modulus97CheckDigit.java @@ -16,6 +16,8 @@ */ package org.apache.commons.validator.routines.checkdigit; +import java.io.Serializable; + import org.apache.commons.validator.GenericTypeValidator; import org.apache.commons.validator.GenericValidator; @@ -32,7 +34,9 @@ * * @since 1.10.0 */ -public class Modulus97CheckDigit extends AbstractCheckDigit { +public class Modulus97CheckDigit extends AbstractCheckDigit implements Serializable { + + private static final long serialVersionUID = -5746038014913492394L; /** Singleton Check Digit instance */ private static final Modulus97CheckDigit INSTANCE = new Modulus97CheckDigit(); diff --git a/src/main/java/org/apache/commons/validator/routines/checkdigit/VATidBECheckDigit.java b/src/main/java/org/apache/commons/validator/routines/checkdigit/VATidBECheckDigit.java index 3043da037..7e80f1bcb 100644 --- a/src/main/java/org/apache/commons/validator/routines/checkdigit/VATidBECheckDigit.java +++ b/src/main/java/org/apache/commons/validator/routines/checkdigit/VATidBECheckDigit.java @@ -37,6 +37,8 @@ */ public final class VATidBECheckDigit extends Modulus97CheckDigit { + private static final long serialVersionUID = 4622288405648808179L; + /** Singleton Check Digit instance */ private static final VATidBECheckDigit INSTANCE = new VATidBECheckDigit();