Removing/Deleting method at the time of saving when not used in Eclipse
posted 6 years ago
I am facing follwing problem with Eclipse.
When the method is not used in my class then at the time of saving the class Eclipse is automatically deleting that method.
I Know i changed some thing in Window>Preferences>Java tab but I forgot what i changed.
Can Any one help in this.
Something is wrong. It is not possible to determine that PlattsSheetMain.mOne is not being used, so it shouldn't be deleted.
mOne is defined as package scope, so any other class in the same package as PlattsSheetMain would be able to call it, including code that wasn't in the Eclipse project but was bound to it at runtime. That wouldn't be possible if this method was deleted.
An IDE is no substitute for an Intelligent Developer.