diff --git a/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java b/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java index 172faf5a035..a6e986cef60 100644 --- a/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java +++ b/byte-buddy-dep/src/main/java/net/bytebuddy/ClassFileVersion.java @@ -24,6 +24,7 @@ import org.objectweb.asm.Opcodes; import java.io.IOException; +import java.io.Serializable; import java.security.PrivilegedAction; /** @@ -31,7 +32,12 @@ * JVMS. */ @HashCodeAndEqualsPlugin.Enhance -public class ClassFileVersion implements Comparable { +public class ClassFileVersion implements Comparable, Serializable { + + /** + * The class's serial version UID. + */ + private static final long serialVersionUID = 1L; /** * Returns the minimal version number that is legal.