Browse Source

Merge pull request #24628 from andrey4623

* pr/24628:
  Polish "Remove unnecessary semicolon"
  Remove unnecessary semicolon

Closes gh-24628
pull/25129/head
Stephane Nicoll 5 years ago
parent
commit
691f905c0b
  1. 4
      spring-boot-project/spring-boot-cli/samples/http.groovy
  2. 4
      spring-boot-project/spring-boot-cli/samples/integration.groovy
  3. 2
      spring-boot-project/spring-boot-cli/samples/template.groovy
  4. 2
      spring-boot-project/spring-boot-cli/samples/ui.groovy
  5. 6
      spring-boot-project/spring-boot-cli/samples/web.groovy
  6. 2
      spring-boot-project/spring-boot-cli/src/test/resources/classloader-test-app.groovy
  7. 2
      spring-boot-project/spring-boot-cli/src/test/resources/scripts/command.groovy
  8. 2
      spring-boot-project/spring-boot-cli/test-samples/integration_auto.groovy

4
spring-boot-project/spring-boot-cli/samples/http.groovy

@ -7,7 +7,7 @@ import groovyx.net.http.* @@ -7,7 +7,7 @@ import groovyx.net.http.*
class Example implements CommandLineRunner {
@Autowired
ApplicationContext context;
ApplicationContext context
@RequestMapping("/")
@ResponseBody
@ -16,7 +16,7 @@ class Example implements CommandLineRunner { @@ -16,7 +16,7 @@ class Example implements CommandLineRunner {
}
void run(String... args) {
def port = context.webServer.port;
def port = context.webServer.port
def world = new RESTClient("http://localhost:" + port).get(path:"/").data.text
print "Hello " + world
}

4
spring-boot-project/spring-boot-cli/samples/integration.groovy

@ -5,11 +5,11 @@ package org.test @@ -5,11 +5,11 @@ package org.test
class SpringIntegrationExample implements CommandLineRunner {
@Autowired
private ApplicationContext context;
private ApplicationContext context
@Bean
DirectChannel input() {
new DirectChannel();
new DirectChannel()
}
@Override

2
spring-boot-project/spring-boot-cli/samples/template.groovy

@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
package org.test
import static org.springframework.boot.groovy.GroovyTemplate.*;
import static org.springframework.boot.groovy.GroovyTemplate.*
@Component
class Example implements CommandLineRunner {

2
spring-boot-project/spring-boot-cli/samples/ui.groovy

@ -7,7 +7,7 @@ class Example { @@ -7,7 +7,7 @@ class Example {
@RequestMapping("/")
public String helloWorld(Map<String,Object> model) {
model.putAll([title: "My Page", date: new Date(), message: "Hello World"])
return "home";
return "home"
}
}

6
spring-boot-project/spring-boot-cli/samples/web.groovy

@ -2,12 +2,12 @@ @@ -2,12 +2,12 @@
class Example {
@Autowired
private MyService myService;
private MyService myService
@RequestMapping("/")
@ResponseBody
public String helloWorld() {
return myService.sayWorld();
return myService.sayWorld()
}
}
@ -16,6 +16,6 @@ class Example { @@ -16,6 +16,6 @@ class Example {
class MyService {
public String sayWorld() {
return "World!";
return "World!"
}
}

2
spring-boot-project/spring-boot-cli/src/test/resources/classloader-test-app.groovy

@ -6,7 +6,7 @@ public class Test implements CommandLineRunner { @@ -6,7 +6,7 @@ public class Test implements CommandLineRunner {
public void run(String... args) throws Exception {
println "HasClasses-" + ClassUtils.isPresent("missing", null) + "-" +
ClassUtils.isPresent("org.springframework.boot.SpringApplication", null) + "-" +
ClassUtils.isPresent(args[0], null);
ClassUtils.isPresent(args[0], null)
}
}

2
spring-boot-project/spring-boot-cli/src/test/resources/scripts/command.groovy

@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
package org.test.command
import java.util.Collection;
import java.util.Collection
class TestCommand implements Command {

2
spring-boot-project/spring-boot-cli/test-samples/integration_auto.groovy

@ -5,7 +5,7 @@ package com.example @@ -5,7 +5,7 @@ package com.example
class RestTests {
@Autowired
TestRestTemplate testRestTemplate;
TestRestTemplate testRestTemplate
@Test
void testHome() {

Loading…
Cancel
Save