We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Consider the following: config.groovy:
withConfig(configuration) { imports { star 'groovy.transform' alias 'Regexp', 'java.util.regex.Pattern' } }
One.groovy:
@Canonical class One { String string Number number private Regexp pattern void setPattern(Regexp pattern) { this.pattern = pattern } }
Tests.groovy:
@CompileStatic final class Tests { @Test void testCtors() { def one = new One('value') // error: Cannot find matching method ... def two = new Two('value') } } @Canonical @CompileStatic class Two { String value }
Organize imports (Ctrl+Shift+O) on Tests.groovy is adding the import statement import java.util.regex.Pattern as Regexp to the source.
import java.util.regex.Pattern as Regexp
The text was updated successfully, but these errors were encountered:
GROOVY-8399 is causing the alias import to be added twice to rewriter but it is removed only once, so it ends up being added to source.
Sorry, something went wrong.
Fix for #709: disable force retention for config script alias imports
d897df4
eric-milles
No branches or pull requests
Consider the following:
config.groovy:
One.groovy:
Tests.groovy:
Organize imports (Ctrl+Shift+O) on Tests.groovy is adding the import statement
import java.util.regex.Pattern as Regexp
to the source.The text was updated successfully, but these errors were encountered: