-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Closed
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
Stuart Gunter opened SPR-9962 and commented
It would be useful if relevant classes within the Spring Framework would implement java.io.Closeable
, as this would allow them to be automatically closed within try-with-resources blocks as well as Apache Commons / Google Guava's closeQuietly() methods.
One example within the Spring Framework that might benefit from this is org.springframework.http.client.ClientHttpResponse
.
Perhaps a good starting point would be to identify any classes that provide a close() method and evaluate whether these are suitable candidates?
Affects: 3.1.3
Issue Links:
- WebSocketSession should extend java.io.Closeable [SPR-12311] #16916 WebSocketSession should extend java.io.Closeable
- TcpConnection should extend java.io.Closeable [SPR-12849] #17447 TcpConnection should extend java.io.Closeable
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement