Skip to content

Commit

Permalink
fix(gui): search only in short names of methods and fields (#818)
Browse files Browse the repository at this point in the history
  • Loading branch information
skylot committed Dec 27, 2019
1 parent 55eb86d commit 8365855
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ public TextSearchIndex(JNodeCache nodeCache) {
public void indexNames(JavaClass cls) {
clsNamesIndex.put(cls.getFullName(), nodeCache.makeFrom(cls));
for (JavaMethod mth : cls.getMethods()) {
mthNamesIndex.put(mth.getFullName(), nodeCache.makeFrom(mth));
mthNamesIndex.put(mth.getName(), nodeCache.makeFrom(mth));
}
for (JavaField fld : cls.getFields()) {
fldNamesIndex.put(fld.getFullName(), nodeCache.makeFrom(fld));
fldNamesIndex.put(fld.getName(), nodeCache.makeFrom(fld));
}
for (JavaClass innerCls : cls.getInnerClasses()) {
indexNames(innerCls);
Expand Down

0 comments on commit 8365855

Please # to comment.