public class AddSerialVersion extends 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(String[] args) |
public static void addSerialVersionUID(ClassReader r, ClassWriter w) throws InvalidClassFileException
IllegalArgumentException
- if r is nullInvalidClassFileException
public static long computeSerialVersionUID(ClassReader r) throws InvalidClassFileException
IllegalArgumentException
- if r is nullInvalidClassFileException
public static void main(String[] args)