Class AddSerialVersion
java.lang.Object
com.ibm.wala.shrike.shrikeBT.shrikeCT.tools.AddSerialVersion
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
This class implements a stream that just discards everything written to it. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
This method computes the serialVersionUID for class r (if there isn't one already) and adds the field to the classwriter w.static long
This method computes the serialVersionUID for class r.static void
-
Method Details
-
addSerialVersionUID
public static void addSerialVersionUID(ClassReader r, ClassWriter w) throws InvalidClassFileException This method computes the serialVersionUID for class r (if there isn't one already) and adds the field to the classwriter w.When run as a program, just takes a list of class files as command line arguments and computes their serialVersionUIDs.
- Throws:
IllegalArgumentException
- if r is nullInvalidClassFileException
-
computeSerialVersionUID
This method computes the serialVersionUID for class r. See the specification.- Throws:
IllegalArgumentException
- if r is nullInvalidClassFileException
-
main
-