perf: improve processing of override related methods (#1072)
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user