Merge pull request #7551 from oscr:redundant-array-test

* pr/7551:
  Remove redundant array creation for calling varargs method
This commit is contained in:
Stephane Nicoll 2016-12-14 19:12:41 +01:00
commit 41f29aeccc
3 changed files with 3 additions and 3 deletions

View File

@ -139,7 +139,7 @@ public class EndpointMvcIntegrationTests {
@Override
public void customize(EndpointHandlerMapping mapping) {
mapping.setInterceptors(new Object[] { interceptor() });
mapping.setInterceptors(interceptor());
}
};

View File

@ -850,7 +850,7 @@ public class EndpointWebMvcAutoConfigurationTests {
@Override
public void customize(EndpointHandlerMapping mapping) {
mapping.setInterceptors(new Object[] { interceptor() });
mapping.setInterceptors(interceptor());
}
};

View File

@ -98,7 +98,7 @@ public class HalBrowserMvcEndpointDisabledIntegrationTests {
public static void main(String[] args) {
SpringApplication.run(SpringBootHypermediaApplication.class,
new String[] { "--endpoints.hypermedia.enabled=false" });
"--endpoints.hypermedia.enabled=false");
}
}