-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Upgrade to Groovy 3.0.7 #24946
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
Upgrade to Groovy 3.0.7 #24946
Conversation
@@ -87,7 +87,8 @@ void setUpExpectations() { | |||
|
|||
@Test | |||
void transformationOfAnnotationOnImport() { | |||
this.moduleNode.addImport(null, null, Arrays.asList(this.grabAnnotation)); | |||
ClassNode classNode = new ClassNode("Test", 0, new ClassNode(Object.class)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Passing null
throws an NPE these days.
Apparently, I need to check why my local builds didn't report the same build failure as on Concourse. I will work on the build error of course. |
@@ -17,7 +16,7 @@ class Example implements CommandLineRunner { | |||
|
|||
void run(String... args) { | |||
def port = context.webServer.port | |||
def world = new RESTClient("http://localhost:" + port).get(path:"/").data.text | |||
def world = new RestTemplate().getForObject("http://localhost:" + port + "/", String.class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def world = new RestTemplate().getForObject("http://localhost:" + port + "/", String.class); | |
def world = new RestTemplate().getForObject("http://localhost:$port/", String.class); |
It's more the Groovy way :).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway, I would put here int
and String
instead of just def
for clarity.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking a look, @szpak. Those are good changes to make, but they're unrelated to an upgrade to Groovy 3.0 so let's keep them separate from this PR please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general LGTM.
Thank you very much, @dreis2211. Much appreciated. |
Hi,
this PR tackles #20119 as discussed.
Let me know what you think.
Cheers,
Christoph