Merge pull request #776 from W25X80/feature_resource_leaks

Fix potential resource leaks in core file processing classes
This commit is contained in:
Jochen Staerk
2025-03-25 19:17:55 +01:00
committed by GitHub
6 changed files with 31 additions and 25 deletions

View File

@@ -312,6 +312,7 @@ public class ZUGFeRDValidator {
XMLWriter writer = new XMLWriter(sw, format);
try {
writer.write(document);
writer.close();
} catch (Exception e) {
LOGGER.error(e.getMessage());
}