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

[3731] Fixing unused import handling for module-infos. #3770

Merged
merged 1 commit into from
Mar 24, 2022

Conversation

jlahoda
Copy link
Contributor

@jlahoda jlahoda commented Mar 12, 2022

Fixes #3731
Import usage is not detected, as the UnusedImports visitor does not descend into the module declaration (IIRC there was a change at some point, before it was included in getTypeDecls, I think).

@mbien mbien added the Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) label Mar 12, 2022
@mbien mbien added this to the NB14 milestone Mar 12, 2022
@matthiasblaesing
Copy link
Contributor

Change looks sane and safe. I could reproduce the problem with current master and can verify, that it is gone with this change.

The only failing test is a module, that was removed, so all green. Lets get this in.

@matthiasblaesing matthiasblaesing merged commit d4d9d64 into apache:master Mar 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

All imports in all module-info.java show as warning
3 participants