From 836585547502142dbdfdf4f3f73e273dcb49be59 Mon Sep 17 00:00:00 2001 From: Skylot Date: Fri, 27 Dec 2019 18:55:11 +0000 Subject: [PATCH] fix(gui): search only in short names of methods and fields (#818) --- .../src/main/java/jadx/gui/utils/search/TextSearchIndex.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jadx-gui/src/main/java/jadx/gui/utils/search/TextSearchIndex.java b/jadx-gui/src/main/java/jadx/gui/utils/search/TextSearchIndex.java index b3b99da599c..0cc09c5612f 100644 --- a/jadx-gui/src/main/java/jadx/gui/utils/search/TextSearchIndex.java +++ b/jadx-gui/src/main/java/jadx/gui/utils/search/TextSearchIndex.java @@ -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);