Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename class uses qualified name #16

Open
max-ellis opened this issue Feb 24, 2021 · 3 comments
Open

Rename class uses qualified name #16

max-ellis opened this issue Feb 24, 2021 · 3 comments

Comments

@max-ellis
Copy link
Collaborator

Summary

IntelliJ uses the qualified name of the class when performing a refactoring. This is a problem because when we merge, one branch will have the qualified name while the other branch will have the nonqualified name, resulting in a merge conflict.

@max-ellis
Copy link
Collaborator Author

A possible workaround is to find each usage and perform an additional renaming.

@max-ellis
Copy link
Collaborator Author

This is only a problem in cases where a class extends another class in the same file.

@max-ellis
Copy link
Collaborator Author

Using refactoring.createRename() seems to solve this issue. It seems that if the project cannot build, this method does not refactor all of the usages. I am going to investigate this further.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant