Intellij refactor skips a field if lombok val is used as the identifier instead of the actual Class
已回答
While trying refactor a class name i noticed that intellij skipped variables that were declared using lombok val instead of the class itself.
for eg Class: TestClass to be renamed to TestClassOne
code to be refactored:
import lombok.val
...
val TestClass = Mockito.mock(TestClass.class)
Expectation:
import lombok.val
...
val TestClassOne = Mockito.mock(TestClassOne.class)
Actual:
import lombok.val
...
val TestClass = Mockito.mock(TestClassOne.class)
Is there a way to include these variable in the refactor as well?
Thanks
请先登录再写评论。
Hello,
Unfortunately the issue is not reproduced on my side with the sample project that has Lombok and Mockito. Can you please upload your sample project here https://uploads.services.jetbrains.com/ and share the link or attach the project sample to the issue created at: https://youtrack.jetbrains.com/issues/IDEA
Thank you