perf: improve processing of override related methods (#1072)

This commit is contained in:
Skylot
2020-12-31 13:33:18 +03:00
parent 1b8b377f90
commit b7ca898b77
8 changed files with 89 additions and 39 deletions
@@ -37,6 +37,10 @@ public class JMethod extends JNode {
return mth;
}
public JavaMethod getJavaMethod() {
return mth;
}
@Override
public JClass getJParent() {
return jParent;
@@ -188,6 +188,9 @@ public class RenameDialog extends JDialog {
if (javaNode != null) {
toUpdate.add(javaNode);
toUpdate.addAll(javaNode.getUseIn());
if (node instanceof JMethod) {
toUpdate.addAll(((JMethod) node).getJavaMethod().getOverrideRelatedMethods());
}
} else if (node instanceof JPackage) {
processPackage(toUpdate);
} else {