mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
- remove the `TempOutputStream.deleteTempFileOnClose` capability - separate the `.close()` and the `.destroy()` methods in **TempOutputStream** (only the latter deletes the temp file) - made `BufferedRequest`&`BufferedResponse` **AutoClosable**; their `.close()` methods always calls `.destroy()` on the underlying _TempOutputStream_ object (thus triggering the removal of their temp files) - remove the `.destroy()` call from the `BufferedResponse.writeResponse()` method - use `BufferedRequest`&`BufferedResponse` in try-with-resources blocks (thus calling their `.close()` methods, which calls `.destroy()` on _TempOutputStream_, tiggering the removal of the temp files) - both in **RepositoryContainer** and in **ApiWebScripts** - replace the `TempOutputStreamFactory` class with a simple `Supplier<TempOutputStream>` - remove the `TempByteArrayOutputStream` inner class (replaced with `ByteArrayOutputStream`) - simplified the decision tree in some methods with the help of the IDE - other small improvements and changes