wood burning stoves 2.0*
The moose likes IDEs, Version Control and other tools and the fly likes Removing/Deleting method at the time of saving when not used in Eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Removing/Deleting method at the time of saving when not used in Eclipse" Watch "Removing/Deleting method at the time of saving when not used in Eclipse" New topic
Author

Removing/Deleting method at the time of saving when not used in Eclipse

jami siva
Ranch Hand

Joined: Oct 16, 2009
Posts: 60
Hi All,

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.





Thanks
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Removing/Deleting method at the time of saving when not used in Eclipse
 
Similar Threads
Pass by Reference in Java
Final with primitives
arguments by using code
Threads
Overloading Constructors.