This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new 1f515587d6f HDDS-9411. Restrict FileInputStream/FileOutputStream
import (#10789)
1f515587d6f is described below
commit 1f515587d6f337f1b29988ac40592e2987e3c0fe
Author: Prathmesh Sapate <[email protected]>
AuthorDate: Fri Jul 17 16:40:30 2026 +0530
HDDS-9411. Restrict FileInputStream/FileOutputStream import (#10789)
---
pom.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/pom.xml b/pom.xml
index 5eabf75cb3f..186485d5a6a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -2158,6 +2158,14 @@
<bannedImport>io.netty.util.internal.**</bannedImport>
</bannedImports>
</restrictImports>
+ <restrictImports>
+ <includeTestCode>true</includeTestCode>
+ <reason>Classes (e.g. FileInputStream, FileOutputStream)
overriding the Object.finalize() method will cause gc to run a much longer
time</reason>
+ <bannedImports>
+ <bannedImport>java.io.FileInputStream</bannedImport>
+ <bannedImport>java.io.FileOutputStream</bannedImport>
+ </bannedImports>
+ </restrictImports>
</rules>
</configuration>
</execution>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]