mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Remove redundant array creation for calling varargs method
Closes gh-7551
This commit is contained in:
parent
e002e03b3e
commit
38713c473f
2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointMvcIntegrationTests.java
Normal file → Executable file
2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointMvcIntegrationTests.java
Normal file → Executable file
@ -139,7 +139,7 @@ public class EndpointMvcIntegrationTests {
|
||||
|
||||
@Override
|
||||
public void customize(EndpointHandlerMapping mapping) {
|
||||
mapping.setInterceptors(new Object[] { interceptor() });
|
||||
mapping.setInterceptors(interceptor());
|
||||
}
|
||||
|
||||
};
|
||||
|
2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java
Normal file → Executable file
2
spring-boot-actuator/src/test/java/org/springframework/boot/actuate/autoconfigure/EndpointWebMvcAutoConfigurationTests.java
Normal file → Executable file
@ -850,7 +850,7 @@ public class EndpointWebMvcAutoConfigurationTests {
|
||||
|
||||
@Override
|
||||
public void customize(EndpointHandlerMapping mapping) {
|
||||
mapping.setInterceptors(new Object[] { interceptor() });
|
||||
mapping.setInterceptors(interceptor());
|
||||
}
|
||||
|
||||
};
|
||||
|
@ -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");
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user