Find Usages for private variable searches outside class

I just tried out the latest EA build 2118 and noticed that when you do a "Find Usages" for a private class variable, the progress window shows it searching everywhere and not just inside the class, which makes it slower.

3 comments
Comment actions Permalink

Allan Brighton wrote:

I just tried out the latest EA build 2118 and noticed that when you do a "Find Usages" for a private class variable, the progress window shows it searching everywhere and not just inside the class, which makes it slower.

Not searches but builds search indicies for libraries etc. Only done first time when searching.

--
Maxim Shafirov
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

Maxim Shafirov (JetBrains) wrote:

Allan Brighton wrote:

>> I just tried out the latest EA build 2118 and noticed that when you do
>> a "Find Usages" for a private class variable, the progress window
>> shows it searching everywhere and not just inside the class, which
>> makes it slower.
>>

Not searches but builds search indicies for libraries etc. Only done
first time when searching.


Could it please not do that when looking for a private (or package for that matter) member? Or at least constrain the indexing to
the scope needed?

/Kreiger

0
Comment actions Permalink

Actually, I'd find it quite uesful if it did search outside the surrounding class, especially in strings. I use reflection a lot, both for database access and for the odd test.

0

Please sign in to leave a comment.