This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 235924 - When using "find usage" over a method it also returns similar words in comments
Summary: When using "find usage" over a method it also returns similar words in comments
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 7.4
Hardware: PC Linux
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-09-13 09:47 UTC by hildeberto
Modified: 2015-04-13 10:27 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screenshot. (125.36 KB, image/png)
2013-09-13 09:47 UTC, hildeberto
Details
Netbeans project that reproduces the issue. (14.10 KB, application/zip)
2013-09-13 09:49 UTC, hildeberto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hildeberto 2013-09-13 09:47:29 UTC
Created attachment 140028 [details]
Screenshot.

Class Factory.java has a method "public void create()". Class Client imports Factory.java, but it doesn't call the method create(), but it contains a comment with the name "create" in it.

When performing "Find Usages" over Factory.create(), the result shows the comment that contains the word "create", even when the class Client.java doesn't call the method create().
Comment 1 hildeberto 2013-09-13 09:49:20 UTC
Created attachment 140029 [details]
Netbeans project that reproduces the issue.
Comment 2 Ralph Ruijs 2015-04-13 10:27:46 UTC
When the checkbox Search in Comments is selected, comments will be searched for text occurrences of the name. If this is not wanted, deselect the checkbox Search in Comments.