提交 83658554 编写于 作者: S Skylot

fix(gui): search only in short names of methods and fields (#818)

上级 55eb86d2
......@@ -54,10 +54,10 @@ public class TextSearchIndex {
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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册