8344664: Remove some un-used java/sun.security imports in the java.desktop module

Reviewed-by: iris
This commit is contained in:
Phil Race 2024-11-21 04:22:27 +00:00
parent a01aa22026
commit 7105bb98cf
13 changed files with 0 additions and 21 deletions

View File

@ -38,7 +38,6 @@ import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.lang.ref.ReferenceQueue;
import java.lang.ref.WeakReference;
import java.security.AccessController;
import java.util.HashMap;
import java.util.Map;
@ -65,7 +64,6 @@ import com.sun.java.swing.plaf.gtk.GTKConstants.PositionType;
import com.sun.java.swing.plaf.gtk.GTKConstants.StateType;
import sun.awt.SunToolkit;
import sun.awt.UNIXToolkit;
import sun.security.action.GetPropertyAction;
import sun.swing.AltProcessor;
import sun.swing.DefaultLayoutStyle;
import sun.swing.MnemonicHandler;

View File

@ -40,7 +40,6 @@ import javax.sound.midi.Soundbank;
import javax.sound.midi.spi.SoundbankReader;
import sun.reflect.misc.ReflectUtil;
import sun.security.action.GetBooleanAction;
/**
* JarSoundbankReader is used to read soundbank object from jar files.

View File

@ -26,8 +26,6 @@
package com.sun.media.sound;
import sun.security.action.GetPropertyAction;
/**
* Printer allows you to set up global debugging status and print
* messages accordingly.

View File

@ -108,7 +108,6 @@ import sun.java2d.SunGraphics2D;
import sun.java2d.SunGraphicsEnvironment;
import sun.java2d.pipe.Region;
import sun.java2d.pipe.hw.ExtendedBufferCapabilities;
import sun.security.action.GetPropertyAction;
import sun.swing.SwingAccessor;
import sun.util.logging.PlatformLogger;

View File

@ -50,7 +50,6 @@ import java.io.PrintWriter;
import java.io.Serial;
import java.io.Serializable;
import java.lang.ref.WeakReference;
import java.security.AccessController;
import java.util.ArrayList;
import java.util.EventListener;
import java.util.HashSet;
@ -67,7 +66,6 @@ import sun.awt.PeerEvent;
import sun.awt.SunToolkit;
import sun.awt.dnd.SunDropTargetEvent;
import sun.java2d.pipe.Region;
import sun.security.action.GetBooleanAction;
import sun.util.logging.PlatformLogger;
/**

View File

@ -70,7 +70,6 @@ import sun.awt.DebugSettings;
import sun.awt.SunToolkit;
import sun.awt.util.IdentityArrayList;
import sun.java2d.pipe.Region;
import sun.security.action.GetPropertyAction;
import sun.util.logging.PlatformLogger;
/**

View File

@ -34,7 +34,6 @@ import java.io.IOException;
import java.io.OutputStream;
import java.lang.reflect.Method;
import java.net.URL;
import java.security.AccessController;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashSet;
@ -50,7 +49,6 @@ import javax.imageio.spi.ServiceRegistry;
import javax.imageio.stream.ImageInputStream;
import javax.imageio.stream.ImageOutputStream;
import sun.awt.AppContext;
import sun.security.action.GetPropertyAction;
/**
* A class containing static convenience methods for locating

View File

@ -43,7 +43,6 @@ import java.text.AttributedString;
import java.text.CharacterIterator;
import javax.swing.JFrame;
import sun.awt.InputMethodSupport;
import sun.security.action.GetPropertyAction;
/**
* The InputMethodContext class provides methods that input methods

View File

@ -39,7 +39,6 @@ public final class ThreadGroupUtils {
/**
* Returns a root thread group.
* Should be called with {@link sun.security.util.SecurityConstants#MODIFY_THREADGROUP_PERMISSION}
*
* @return a root {@code ThreadGroup}
*/

View File

@ -45,7 +45,6 @@ import java.util.Map;
import sun.java2d.Disposer;
import sun.java2d.DisposerRecord;
import sun.security.action.GetPropertyAction;
/**
* TrueTypeFont is not called SFntFont because it is not expected

View File

@ -65,7 +65,6 @@ public final class MarlinUtils {
/**
* Returns a root thread group.
* Should be called with {@link sun.security.util.SecurityConstants#MODIFY_THREADGROUP_PERMISSION}
*
* @return a root {@code ThreadGroup}
*/

View File

@ -51,15 +51,11 @@ import java.awt.image.WritableRaster;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import sun.awt.X11.XBaseWindow;
import sun.security.action.GetIntegerAction;
import com.sun.java.swing.plaf.gtk.GTKConstants.TextDirection;
import sun.java2d.opengl.OGLRenderQueue;
import sun.security.action.GetPropertyAction;
public abstract class UNIXToolkit extends SunToolkit
{

View File

@ -30,10 +30,8 @@ import java.awt.Image;
import java.awt.Toolkit;
import java.awt.im.spi.InputMethod;
import java.awt.im.spi.InputMethodDescriptor;
import java.security.AccessController;
import java.util.Locale;
import sun.awt.SunToolkit;
import sun.security.action.GetPropertyAction;
/**
* Provides sufficient information about an input method