From 8003cdd040e8687bf40ba1276d75a8377914f828 Mon Sep 17 00:00:00 2001 From: Theresa Mammarella Date: Mon, 9 Dec 2024 21:22:48 -0500 Subject: [PATCH] Supress warning for System.initSecurityManager Signed-off-by: Theresa Mammarella --- jcl/src/java.base/share/classes/java/lang/System.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jcl/src/java.base/share/classes/java/lang/System.java b/jcl/src/java.base/share/classes/java/lang/System.java index e878e1d9dff..63e20c91f33 100644 --- a/jcl/src/java.base/share/classes/java/lang/System.java +++ b/jcl/src/java.base/share/classes/java/lang/System.java @@ -1264,6 +1264,9 @@ static void checkTmpDir() { } /*[IF JAVA_SPEC_VERSION >= 9]*/ +/*[IF JAVA_SPEC_VERSION < 24]*/ +@SuppressWarnings("removal") +/*[ENDIF] JAVA_SPEC_VERSION < 24 */ static void initSecurityManager(ClassLoader applicationClassLoader) { /*[IF JAVA_SPEC_VERSION >= 24]*/ boolean throwErrorOnInit = false;