Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-core-dev] Finding dead code

Latest integration build has a correction for search engine which should
improve the tool diagnostics.



                                                                           
             John Arthorne                                                 
             <John_Arthorne@ca                                             
             .ibm.com>                                                  To 
             Sent by:                  jdt-core-dev@xxxxxxxxxxx            
             jdt-core-dev-admi                                          cc 
             n@xxxxxxxxxxx                                                 
                                                                   Subject 
                                       [jdt-core-dev] Finding dead code    
             03/22/2005 03:51                                              
             PM                                                            
                                                                           
                                                                           
             Please respond to                                             
               jdt-core-dev                                                
                                                                           
                                                                           





I have had several emails asking for a pointer to the tool that finds dead
code.  It is located in the org.eclipse.core.tools plugin, available via
anonymous CVS connection to dev.eclipse.org.  Simply install that plugin,
and a new action is added to the package explorer context menu (Find
Unreferenced Members).  For a peek at the implementation, look at
FindUnusedMembersAction.java.  Again, for anyone using it, be wary of false
hits - it will report a method as unreferenced even if it overrides a
supertype method that is referenced.  Validate any results carefully before
deleting code.



Back to the top