failsafe-lib / failsafe

Fault tolerance and resilience patterns for the JVM
https://failsafe.dev
Apache License 2.0
4.17k stars 296 forks source link

Fix violations of Sonar rule 2095 #315

Closed khaes-kth closed 2 years ago

khaes-kth commented 2 years ago

Hi,

This PR fixes 1 violations of Sonar Rule 2095: 'Resources should be closed'. This is done without introducing any new violations of Sonar rules.

The patch was generated automatically with the tool Sorald. For details on the fix applied here, please see Sorald's documentation on rule 2095.

P.S.: Note that this PR is not created/submitted by a bot. If you have any feedback, please leave them as comments.

jhalterman commented 2 years ago

This is test code, and closing a StringWriter has no effect.

khaes-kth commented 2 years ago

Thanks a lot for your comment @jhalterman . We really appreciate your attention to this pull request.