Re: Unused method highlighting
The editor already has that function, though you need to be very pragmatic when you are writing your classes. It is can only been determined for private methods safely whatever is public/package private are can be potentially called from outside. The current usage can be checked the find usages (Alt+F7) for public and package private members/classes. On 6/10/19 5:47 AM, Mohammad Mohsen Nourafkan wrote: Hi everyone Is there possible to highlight those methods never called in editor Thanks -- MOHSENTM
Re: Unused method highlighting
It's possible, intelij does it, it's just a question if netbeans does it. If not I'd advise raising a new Jira or adding the functionality yourself if you have the expertise. Netbeans definitely highlights unused methods and fields to a certain extent. On Mon, 10 Jun 2019, 17:38 Greenberg, Gary, wrote: > I do not think it feasible, because methods (unless they are private) can > be called from outside of the class. > > Editor have to parse the whole project or may be more than one, if this > project listed as dependency in another one. > > You can always check if particular method is used, using ‘Find usage’ > feature. > > > > Gary Greenberg > > Staff Software Engineer > > Data Product Development, BI-A > > E: ggree...@visa.com > > M: 650-269-7902 > > > > [image: EmailSig-TaglineVersion] > > > > *From:* Mohammad Mohsen Nourafkan > *Sent:* Monday, June 10, 2019 5:47 AM > *To:* users@netbeans.apache.org > *Subject:* Unused method highlighting > > > > Hi everyone > > Is there possible to highlight those methods never called in editor > Thanks > > -- > > MOHSENTM >
RE: Unused method highlighting
I do not think it feasible, because methods (unless they are private) can be called from outside of the class. Editor have to parse the whole project or may be more than one, if this project listed as dependency in another one. You can always check if particular method is used, using ‘Find usage’ feature. Gary Greenberg Staff Software Engineer Data Product Development, BI-A E: ggree...@visa.com M: 650-269-7902 [EmailSig-TaglineVersion] From: Mohammad Mohsen Nourafkan Sent: Monday, June 10, 2019 5:47 AM To: users@netbeans.apache.org Subject: Unused method highlighting Hi everyone Is there possible to highlight those methods never called in editor Thanks -- MOHSENTM