未验证 提交 e7a86a29 编写于 作者: S Skylot

fix(gui): forbid rename method args in fallback mode (#1558)

上级 b282d97f
......@@ -4,6 +4,7 @@ import java.util.Collections;
import java.util.List;
import org.jetbrains.annotations.ApiStatus;
import org.jetbrains.annotations.Nullable;
import jadx.api.metadata.ICodeAnnotation;
import jadx.api.metadata.annotations.VarNode;
......@@ -32,7 +33,7 @@ public class JavaVariable implements JavaNode {
}
@Override
public String getName() {
public @Nullable String getName() {
return varNode.getName();
}
......
......@@ -70,6 +70,6 @@ public class JVariable extends JNode {
@Override
public boolean canRename() {
return true;
return var.getName() != null;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册