The following methods are not available in Java SE 11:
java.lang.SecurityManager.checkAwtEventQueueAccessjava.lang.SecurityManager.checkSystemClipboardAccessjava.lang.SecurityManager.checkMemberAccessjava.lang.SecurityManager.checkTopLevelWindow
The removed methods should be replaced with calls to the java.lang.SecurityManager.checkPermission method.
This rule has an automated fix to update the method call. Copy the custom configuration to your application build file to enable the fix automation.
The automated fix replaces the method calls with checkPermission(new java.security.AllPermission()).
For SecurityManager Javadoc, see Class SecurityManager. For more information on Java SE 11 changes, see Removed APIs in JDK 11.