public class AddSerialVersion
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AddSerialVersion.SinkOutputStream
This class implements a stream that just discards everything written to it.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
addSerialVersionUID(ClassReader r,
ClassWriter w)
This method computes the serialVersionUID for class r (if there isn't one already) and adds the
field to the classwriter w.
|
static long |
computeSerialVersionUID(ClassReader r)
This method computes the serialVersionUID for class r.
|
static void |
main(java.lang.String[] args) |
public static void addSerialVersionUID(ClassReader r, ClassWriter w) throws InvalidClassFileException
When run as a program, just takes a list of class files as command line arguments and computes their serialVersionUIDs.
java.lang.IllegalArgumentException - if r is nullInvalidClassFileExceptionpublic static long computeSerialVersionUID(ClassReader r) throws InvalidClassFileException
java.lang.IllegalArgumentException - if r is nullInvalidClassFileExceptionpublic static void main(java.lang.String[] args)