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

Improved Java metavariable support #503

Open
morgante opened this issue Sep 13, 2024 · 1 comment · Fixed by #504
Open

Improved Java metavariable support #503

morgante opened this issue Sep 13, 2024 · 1 comment · Fixed by #504

Comments

@morgante
Copy link
Contributor

morgante commented Sep 13, 2024

For this code:

import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.InjectMocks;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.mock.web.MockHttpServletRequest;
import org.springframework.security.oauth2.client.DefaultOAuth2ClientContext;
import org.springframework.security.oauth2.client.OAuth2ClientContext;

Both these should work:

import $_
import org.springframework.$_
@morgante
Copy link
Contributor Author

So this actually works:

`import $import;` where $import <: contains `org.springframework`

But I think this is more intuitive:

import org.springframework.$_;

We should consider having an equivalence class that is able to map between the two.

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

Successfully merging a pull request may close this issue.

1 participant