Community
Participate
Working Groups
It is a standard practice to declare the serialVersionUID field as "private static final". The current compiler option of "Unused private types, methods or fields" flags this an an warning/error, which is bit annoying. It's nice if the compiler recognizes this case. Or even better, if I can tell the compiler that certain private fields/methods are intentionally there (through custom javadoc tag or etc.) such as: /** * * @eclipse:used */ private static void myMethod() { ... } (I couldn't think of a good tag name, sorry)
Serialization artifacts are already handled in recent integration build. Which build are you using ? As for using special tags to mark unused private members, this is questionable and already reported in bug 30952. Can you confirm that serialVersionUID fields are properly handled in recent integration build ?
Closing. Checked that serialVersionUID is not complained against.