mirror of
https://github.com/skylot/jadx.git
synced 2024-11-27 14:40:54 +00:00
fix(gui): exclude declaration from usage list (#1110)
This commit is contained in:
parent
1ce3fc972a
commit
90fbc790d9
@ -50,6 +50,11 @@ public class CodeUsageInfo {
|
||||
for (Map.Entry<CodePosition, JavaNode> entry : usage.entrySet()) {
|
||||
CodePosition codePosition = entry.getKey();
|
||||
JavaNode javaNode = entry.getValue();
|
||||
if (javaNode.getTopParentClass().equals(javaClass)
|
||||
&& codePosition.getPos() == javaNode.getDefPos()) {
|
||||
// skip declaration
|
||||
continue;
|
||||
}
|
||||
addUsage(nodeCache.makeFrom(javaNode), javaClass, linesInfo, codePosition, lines);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user