Skip to content

Commit

Permalink
Supress warning for System.initSecurityManager
Browse files Browse the repository at this point in the history
Signed-off-by: Theresa Mammarella <[email protected]>
  • Loading branch information
theresa-m committed Dec 10, 2024
1 parent b798307 commit edb99e8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions jcl/src/java.base/share/classes/java/lang/System.java
Original file line number Diff line number Diff line change
Expand Up @@ -1264,6 +1264,20 @@ static void checkTmpDir() {
}

/*[IF JAVA_SPEC_VERSION >= 9]*/
/**
* Initialize the security manager according
* to the java.security.manager system property.
* @param applicationClassLoader
* @throws Error
/*[IF JAVA_SPEC_VERSION >= 24]
* if the user attempts to enable the security manager
/*[ELSE] JAVA_SPEC_VERSION >= 24
* if the security manager could not be initialized
/*[ENDIF] JAVA_SPEC_VERSION >= 24
*/
/*[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;
Expand Down

0 comments on commit edb99e8

Please sign in to comment.