Describe the bug
When an annotation is refactored with the type reference refactor, and the annotation is an inner type, the import is changed as though the import was a top level type.
To Reproduce
See unit test TestTypeReferenceRefactor#testChangeInnerTypeAnnotation.
Expected behavior
The import should reflect that the annotation is an inner type, e.g.
import org.alfasoftware.astra.exampleTypes.A.InnerAnnotationA
rather than
import org.alfasoftware.astra.exampleTypes.InnerAnnotationA
Additional context
A similar issue affects AnnotationsRefactor - see TestAnnotationsRefactor#testAnnotationInnerTypeChange
Describe the bug When an annotation is refactored with the type reference refactor, and the annotation is an inner type, the import is changed as though the import was a top level type.
To Reproduce See unit test
TestTypeReferenceRefactor#testChangeInnerTypeAnnotation
.Expected behavior The import should reflect that the annotation is an inner type, e.g.
import org.alfasoftware.astra.exampleTypes.A.InnerAnnotationA
rather thanimport org.alfasoftware.astra.exampleTypes.InnerAnnotationA
Additional context A similar issue affects
AnnotationsRefactor
- seeTestAnnotationsRefactor#testAnnotationInnerTypeChange