Skip to content

Commit

Permalink
change default to non-static when access is missing -- fixes #189, fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ix0rai committed Apr 23, 2024
1 parent 705ac0c commit 11fb00a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void refreshReference() {
// type
JarIndex index = this.gui.getController().getProject().getJarIndex();
AccessFlags access = index.getIndex(EntryIndex.class).getMethodAccess(lve.getParent());
int i = access == null || access.isStatic() ? 0 : 1;
int i = access != null && access.isStatic() ? 0 : 1;
var args = lve.getParent().getDesc().getArgumentDescs();

for (ArgumentDescriptor arg : args) {
Expand Down

0 comments on commit 11fb00a

Please sign in to comment.