Community
Participate
Working Groups
A developer can configure the java compiler settings to notify if any private methods/fields are not being used. This is a useful feature as it indicates unused code and coupled with all of the other alerts can be used to streamline the source file. There is however (at least) one instance where the developer does not wish to be notified and that is when the source contains the private field serialVersionUID which is inherent in Serializable Java Sources.
It should already do what you suggest. Which build are you using ? Can you provide a test case ?
I am using Version: 2.1 Build id: 200302061700
I have a Java Source with the following declaration in it /** * Serialization UID */ private static final long serialVersionUID = 1000000000000001L; Whislt checking to make sure I had declared it correctly, I actually saw an example in some javadoc where this field is declared public which clearly would be ignored by the warnings, but as far as I know Serialization works irrespective of the access modifier.
You are using an intermediate build. Use true 2.1 release or 2.1.1.
Sorry for the delay. I am currently downloading 2.1 release. Thanks for your help, much appreciated