Skip to content

Imported inner classes not always used #116

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

Closed
fabapp2 opened this issue May 4, 2022 · 1 comment
Closed

Imported inner classes not always used #116

fabapp2 opened this issue May 4, 2022 · 1 comment
Assignees
Labels
JEE/JAX-RS type: bug Something isn't working
Milestone

Comments

@fabapp2
Copy link
Contributor

fabapp2 commented May 4, 2022

Describe the bug
When migrating from JAX-RS to Spring inner class HttpStatus.Series is imported but not used everywhere.
Series custom = HttpStatus.Series.resolve(code); could be Series custom = Series.resolve(code); instead.

To Reproduce
Steps to reproduce the behavior:

  1. Replace HttpStatus.Series with Series in expected code of ResponseStatusFamilyTest.enumConstantsTest()
  2. Run test

Expected behavior
Inner classes are used when imported

@fabapp2 fabapp2 added type: enhancement New feature or request JEE/JAX-RS labels May 4, 2022
@fabapp2
Copy link
Contributor Author

fabapp2 commented Jul 13, 2022

Since openrewrite 7.26.0 the inner classes are always referenced by their owning class.
Screenshot 2022-07-13 at 18 58 19

@fabapp2 fabapp2 closed this as completed Jul 13, 2022
@fabapp2 fabapp2 added this to the v0.12.0 milestone Sep 20, 2022
@fabapp2 fabapp2 added type: bug Something isn't working and removed type: enhancement New feature or request labels Sep 23, 2022
@fabapp2 fabapp2 modified the milestone: v0.12.0 Sep 23, 2022
@fabapp2 fabapp2 self-assigned this Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JEE/JAX-RS type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant