Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoCloseable interface for classes that already implement it #831

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

SirLefti
Copy link
Contributor

@SirLefti SirLefti commented Oct 1, 2022

Description of the new Feature/Bugfix

I added the AutoCloseable interface on those classes which already implement it. Most of them seem to use it to close files or streams in their implementation, so it is recommended to give them this interface.

Related Issue: Problem/enhancement mentioned in #812

Unit-Tests for the new Feature/Bugfix

No new tests needed, because it does not introduce a new feature or fix a bug or change.

Compatibilities Issues

No issues to be expected, but linters will suggest the dev to use try-with-resources.

Testing details

--

…e close method

removed it from Document, because it inherits/implements it now transitively via DocListener
@sonarcloud
Copy link

sonarcloud bot commented Oct 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@sonatype-lift
Copy link

sonatype-lift bot commented Oct 1, 2022

⚠️ 80 God Classes were detected by Lift in this project. Visit the Lift web console for more details.

@peterjohansen
Copy link

@asturio, could this please be merged?

@asturio asturio linked an issue May 4, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PdfStamper to implement AutoCloseable
4 participants