Simplify some code
See gh-17834
This commit is contained in:
@@ -97,8 +97,7 @@ class ShutdownEndpointTests {
|
||||
|
||||
@Bean
|
||||
ShutdownEndpoint endpoint() {
|
||||
ShutdownEndpoint endpoint = new ShutdownEndpoint();
|
||||
return endpoint;
|
||||
return new ShutdownEndpoint();
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -124,9 +124,7 @@ class DiscoveredJmxOperationTests {
|
||||
annotationAttributes.put("produces", "application/xml");
|
||||
DiscoveredOperationMethod operationMethod = new DiscoveredOperationMethod(method, OperationType.READ,
|
||||
annotationAttributes);
|
||||
DiscoveredJmxOperation operation = new DiscoveredJmxOperation(EndpointId.of("test"), operationMethod,
|
||||
mock(OperationInvoker.class));
|
||||
return operation;
|
||||
return new DiscoveredJmxOperation(EndpointId.of("test"), operationMethod, mock(OperationInvoker.class));
|
||||
}
|
||||
|
||||
private Method findMethod(String methodName) {
|
||||
|
||||
Reference in New Issue
Block a user