Since JEP 486 : Permanently Disable the Security Manager
[https://bugs.openjdk.org/browse/JDK-8338625] is now integrated, calls to java.security.AccessController.doPrivileged are obsolete and can be removed.
This bug enumerates unix-platform files in the java.desktop module that can have them removed.
The fix for this should focus on removing these, and exclude any refactoring, reformatting, or other clean up that is not required for this fix.
Any SM related imports that are no longer needed they should be removed.
Also avoid any other SecurityManager related clean up even in the same file.
Those will be addressed in follow-on bugs.
./unix/classes/sun/print/UnixPrintJob.java
./unix/classes/sun/print/UnixPrintService.java
./unix/classes/sun/print/IPPPrintService.java
./unix/classes/sun/print/CUPSPrinter.java
./unix/classes/sun/print/PrintServiceLookupProvider.java
./unix/classes/sun/java2d/xr/XRCompositeManager.java
./unix/classes/sun/java2d/x11/X11SurfaceData.java
./unix/classes/sun/awt/screencast/ScreencastHelper.java
./unix/classes/sun/awt/screencast/TokenStorage.java
./unix/classes/sun/awt/X11GraphicsEnvironment.java
./unix/classes/sun/awt/X11/XWindowPeer.java
./unix/classes/sun/awt/X11/XTrayIconPeer.java
./unix/classes/sun/awt/X11/XRobotPeer.java
./unix/classes/sun/awt/X11/Native.java
./unix/classes/sun/awt/X11/InfoWindow.java
./unix/classes/sun/awt/X11/XlibWrapper.java
./unix/classes/sun/awt/X11/XEmbedCanvasPeer.java
./unix/classes/sun/awt/X11/XClipboard.java
./unix/classes/sun/awt/X11/XFileDialogPeer.java
./unix/classes/sun/awt/X11/XTaskbarPeer.java
./unix/classes/sun/awt/X11/XErrorHandlerUtil.java
./unix/classes/sun/awt/X11/XToolkit.java
./unix/classes/sun/awt/UNIXToolkit.java
./unix/classes/sun/awt/PlatformGraphicsInfo.java
./unix/classes/sun/awt/X11GraphicsDevice.java
./unix/classes/sun/font/FcFontConfiguration.java