Hi,
I think you could write a code to that for you. Something like this:
File srcDir = new File("directory where your source files are");
File[] srcFiles = list all java source files in the srcDir directory and its subdirectories (there's a class to do that here: http://snippets.dzone.com/
Then, for each file in the array, you check if the text "implements Serializable" or "implements java.io.Serializabie" is present.
So, just below the class declaration, you add the following line:
"private static final long serialVersionUID = " + ObjectStreamClass.getSeria
Depending on the number of classes you have, I think it is worth it to try.
Don't know if it will work, though.
Main Topics
Browse All Topics





by: objectsPosted on 2007-09-02 at 20:26:45ID: 19818940
not that I'm aware of sorry