Class AddSerialVersion
java.lang.Object
com.ibm.wala.shrike.shrikeBT.shrikeCT.tools.AddSerialVersion
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThis class implements a stream that just discards everything written to it. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidThis method computes the serialVersionUID for class r (if there isn't one already) and adds the field to the classwriter w.static longThis 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
-