8344664: Remove some un-used java/sun.security imports in the java.desktop module
Reviewed-by: iris
This commit is contained in:
parent
a01aa22026
commit
7105bb98cf
@ -38,7 +38,6 @@ import java.beans.PropertyChangeEvent;
|
|||||||
import java.beans.PropertyChangeListener;
|
import java.beans.PropertyChangeListener;
|
||||||
import java.lang.ref.ReferenceQueue;
|
import java.lang.ref.ReferenceQueue;
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
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 com.sun.java.swing.plaf.gtk.GTKConstants.StateType;
|
||||||
import sun.awt.SunToolkit;
|
import sun.awt.SunToolkit;
|
||||||
import sun.awt.UNIXToolkit;
|
import sun.awt.UNIXToolkit;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
import sun.swing.AltProcessor;
|
import sun.swing.AltProcessor;
|
||||||
import sun.swing.DefaultLayoutStyle;
|
import sun.swing.DefaultLayoutStyle;
|
||||||
import sun.swing.MnemonicHandler;
|
import sun.swing.MnemonicHandler;
|
||||||
|
@ -40,7 +40,6 @@ import javax.sound.midi.Soundbank;
|
|||||||
import javax.sound.midi.spi.SoundbankReader;
|
import javax.sound.midi.spi.SoundbankReader;
|
||||||
|
|
||||||
import sun.reflect.misc.ReflectUtil;
|
import sun.reflect.misc.ReflectUtil;
|
||||||
import sun.security.action.GetBooleanAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* JarSoundbankReader is used to read soundbank object from jar files.
|
* JarSoundbankReader is used to read soundbank object from jar files.
|
||||||
|
@ -26,8 +26,6 @@
|
|||||||
package com.sun.media.sound;
|
package com.sun.media.sound;
|
||||||
|
|
||||||
|
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Printer allows you to set up global debugging status and print
|
* Printer allows you to set up global debugging status and print
|
||||||
* messages accordingly.
|
* messages accordingly.
|
||||||
|
@ -108,7 +108,6 @@ import sun.java2d.SunGraphics2D;
|
|||||||
import sun.java2d.SunGraphicsEnvironment;
|
import sun.java2d.SunGraphicsEnvironment;
|
||||||
import sun.java2d.pipe.Region;
|
import sun.java2d.pipe.Region;
|
||||||
import sun.java2d.pipe.hw.ExtendedBufferCapabilities;
|
import sun.java2d.pipe.hw.ExtendedBufferCapabilities;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
import sun.swing.SwingAccessor;
|
import sun.swing.SwingAccessor;
|
||||||
import sun.util.logging.PlatformLogger;
|
import sun.util.logging.PlatformLogger;
|
||||||
|
|
||||||
|
@ -50,7 +50,6 @@ import java.io.PrintWriter;
|
|||||||
import java.io.Serial;
|
import java.io.Serial;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.lang.ref.WeakReference;
|
import java.lang.ref.WeakReference;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.EventListener;
|
import java.util.EventListener;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -67,7 +66,6 @@ import sun.awt.PeerEvent;
|
|||||||
import sun.awt.SunToolkit;
|
import sun.awt.SunToolkit;
|
||||||
import sun.awt.dnd.SunDropTargetEvent;
|
import sun.awt.dnd.SunDropTargetEvent;
|
||||||
import sun.java2d.pipe.Region;
|
import sun.java2d.pipe.Region;
|
||||||
import sun.security.action.GetBooleanAction;
|
|
||||||
import sun.util.logging.PlatformLogger;
|
import sun.util.logging.PlatformLogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,7 +70,6 @@ import sun.awt.DebugSettings;
|
|||||||
import sun.awt.SunToolkit;
|
import sun.awt.SunToolkit;
|
||||||
import sun.awt.util.IdentityArrayList;
|
import sun.awt.util.IdentityArrayList;
|
||||||
import sun.java2d.pipe.Region;
|
import sun.java2d.pipe.Region;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
import sun.util.logging.PlatformLogger;
|
import sun.util.logging.PlatformLogger;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -34,7 +34,6 @@ import java.io.IOException;
|
|||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.net.URL;
|
import java.net.URL;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
@ -50,7 +49,6 @@ import javax.imageio.spi.ServiceRegistry;
|
|||||||
import javax.imageio.stream.ImageInputStream;
|
import javax.imageio.stream.ImageInputStream;
|
||||||
import javax.imageio.stream.ImageOutputStream;
|
import javax.imageio.stream.ImageOutputStream;
|
||||||
import sun.awt.AppContext;
|
import sun.awt.AppContext;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A class containing static convenience methods for locating
|
* A class containing static convenience methods for locating
|
||||||
|
@ -43,7 +43,6 @@ import java.text.AttributedString;
|
|||||||
import java.text.CharacterIterator;
|
import java.text.CharacterIterator;
|
||||||
import javax.swing.JFrame;
|
import javax.swing.JFrame;
|
||||||
import sun.awt.InputMethodSupport;
|
import sun.awt.InputMethodSupport;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The InputMethodContext class provides methods that input methods
|
* The InputMethodContext class provides methods that input methods
|
||||||
|
@ -39,7 +39,6 @@ public final class ThreadGroupUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a root thread group.
|
* Returns a root thread group.
|
||||||
* Should be called with {@link sun.security.util.SecurityConstants#MODIFY_THREADGROUP_PERMISSION}
|
|
||||||
*
|
*
|
||||||
* @return a root {@code ThreadGroup}
|
* @return a root {@code ThreadGroup}
|
||||||
*/
|
*/
|
||||||
|
@ -45,7 +45,6 @@ import java.util.Map;
|
|||||||
|
|
||||||
import sun.java2d.Disposer;
|
import sun.java2d.Disposer;
|
||||||
import sun.java2d.DisposerRecord;
|
import sun.java2d.DisposerRecord;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* TrueTypeFont is not called SFntFont because it is not expected
|
* TrueTypeFont is not called SFntFont because it is not expected
|
||||||
|
@ -65,7 +65,6 @@ public final class MarlinUtils {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a root thread group.
|
* Returns a root thread group.
|
||||||
* Should be called with {@link sun.security.util.SecurityConstants#MODIFY_THREADGROUP_PERMISSION}
|
|
||||||
*
|
*
|
||||||
* @return a root {@code ThreadGroup}
|
* @return a root {@code ThreadGroup}
|
||||||
*/
|
*/
|
||||||
|
@ -51,15 +51,11 @@ import java.awt.image.WritableRaster;
|
|||||||
import java.io.BufferedReader;
|
import java.io.BufferedReader;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStreamReader;
|
import java.io.InputStreamReader;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.security.PrivilegedAction;
|
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
import sun.awt.X11.XBaseWindow;
|
import sun.awt.X11.XBaseWindow;
|
||||||
import sun.security.action.GetIntegerAction;
|
|
||||||
import com.sun.java.swing.plaf.gtk.GTKConstants.TextDirection;
|
import com.sun.java.swing.plaf.gtk.GTKConstants.TextDirection;
|
||||||
import sun.java2d.opengl.OGLRenderQueue;
|
import sun.java2d.opengl.OGLRenderQueue;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
public abstract class UNIXToolkit extends SunToolkit
|
public abstract class UNIXToolkit extends SunToolkit
|
||||||
{
|
{
|
||||||
|
@ -30,10 +30,8 @@ import java.awt.Image;
|
|||||||
import java.awt.Toolkit;
|
import java.awt.Toolkit;
|
||||||
import java.awt.im.spi.InputMethod;
|
import java.awt.im.spi.InputMethod;
|
||||||
import java.awt.im.spi.InputMethodDescriptor;
|
import java.awt.im.spi.InputMethodDescriptor;
|
||||||
import java.security.AccessController;
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
import sun.awt.SunToolkit;
|
import sun.awt.SunToolkit;
|
||||||
import sun.security.action.GetPropertyAction;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides sufficient information about an input method
|
* Provides sufficient information about an input method
|
||||||
|
Loading…
Reference in New Issue
Block a user