Merge pull request #5773 from fabriziocucci/patch-1

* pr/5773:
  Polish
  Removed redundant override of the configure method
This commit is contained in:
Stephane Nicoll 2016-04-23 16:15:25 +02:00
commit 892c1a52f7
2 changed files with 1 additions and 6 deletions

View File

@ -25,7 +25,7 @@ import org.springframework.stereotype.Component;
@Path("/hello")
public class Endpoint {
private Service service;
private final Service service;
public Endpoint(Service service) {
this.service = service;

View File

@ -23,11 +23,6 @@ import org.springframework.boot.context.web.SpringBootServletInitializer;
@SpringBootApplication
public class SampleJerseyApplication extends SpringBootServletInitializer {
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(SampleJerseyApplication.class);
}
public static void main(String[] args) {
new SampleJerseyApplication()
.configure(new SpringApplicationBuilder(SampleJerseyApplication.class))