Skip to content

Commit 0ac21dd

Browse files
committed
Remove RestTemplate.close() Call
spring-projects/spring-framework#29370
1 parent 2351e65 commit 0ac21dd

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

spring-rabbit/src/main/java/org/springframework/amqp/rabbit/connection/RestTemplateNodeLocator.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.springframework.amqp.rabbit.connection;
1818

19-
import java.io.IOException;
2019
import java.net.URI;
2120
import java.net.URISyntaxException;
2221
import java.nio.charset.StandardCharsets;
@@ -84,13 +83,4 @@ protected HttpContext createHttpContext(HttpMethod httpMethod, URI uri) {
8483
return response.getStatusCode().equals(HttpStatus.OK) ? response.getBody() : null;
8584
}
8685

87-
@Override
88-
public void close(RestTemplateHolder client) {
89-
try {
90-
client.template.close();
91-
}
92-
catch (IOException e) {
93-
}
94-
}
95-
9686
}

0 commit comments

Comments
 (0)