The security Manager is deprecated for removal since Java 17. In Java 21, it is a no-op and t he warning cannot be removed anymore. Therefore, remove the Security Manager for just Java 21 (to keep backwards compatibility) and issue a warning (for all versions).
The security Manager is deprecated for removal since Java 17. In Java 21, it is a no-op and t he warning cannot be removed anymore. Therefore, remove the Security Manager for just Java 21 (to keep backwards compatibility) and issue a warning (for all versions).