Re: Find unused private methods in a class

Mitch Claborn <[email protected]>
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <CAKKx8bz6GvpMSyWAagwxqjXxAHiFU-hVcatYY=_zPF=+CK54XA@mail.gmail.com>
Perfect. Thanks Ernie.

Mitch



On Thu, Mar 13, 2025 at 10:26 AM Ernie Rael <[email protected]> wrote:

> On 25/03/13 6:24 AM, Mitch Claborn wrote:
>
> I do see the highlighted methods (wavy underline of the method name). I'm
> not seeing any light bulb in the gutter.
> I was hoping for something that would show a list of the unused methods in
> a given class, package or project. Maybe something in Source > Inspect.
>
> Doing "Source > Inspect > SingleInspection > Browse" and in "Search" enter
> "unused" then "Unused Element" is listed under "Probable Bugs". This should
> correspond to the hint you mention.
>
> You can also get to it with Source > Inspect > Configuration > Default >
> Manage... > NetBeans Java Hints"
>
> -ernie
>
>
>
> Mitch
>
>
> On Wed, Mar 12, 2025 at 11:23 PM Scott Palmer <[email protected]> wrote:
>
>> They are automatically highlighted.  You should see a lightbulb in the
>> gutter too.
>>
>> Scott
>>
>> On Mar 12, 2025, at 5:15 PM, Mitch Claborn <[email protected]>
>> wrote:
>>
>> 
>> Does NB have any way to easily find unused private methods?
>>
>> Mitch Claborn
>> HatcheryManager.com - Complete Hatchery Management System
>> [email protected]
>> hatcherymanager.com
>> schedule a meeting <https://calendar.app.google/Eozsu4Uv1xpBY31c7>
>>
>>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.