Skip to content

Commit

Permalink
Make class file version serializable to allow use in Gradle increment…
Browse files Browse the repository at this point in the history
…al builds.
  • Loading branch information
raphw committed Nov 29, 2021
1 parent 31ab4a0 commit 30c96b1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@
import org.objectweb.asm.Opcodes;

import java.io.IOException;
import java.io.Serializable;
import java.security.PrivilegedAction;

/**
* A wrapper object for representing a validated class file version in the format that is specified by the
* <a href="http://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html">JVMS</a>.
*/
@HashCodeAndEqualsPlugin.Enhance
public class ClassFileVersion implements Comparable<ClassFileVersion> {
public class ClassFileVersion implements Comparable<ClassFileVersion>, Serializable {

/**
* The class's serial version UID.
*/
private static final long serialVersionUID = 1L;

/**
* Returns the minimal version number that is legal.
Expand Down

0 comments on commit 30c96b1

Please sign in to comment.