From 1c7f34d3dd24551c0d325f1f3c56ffb7be9042e1 Mon Sep 17 00:00:00 2001 From: Phil Race <prr@openjdk.org> Date: Tue, 26 Nov 2024 01:10:24 +0000 Subject: [PATCH] 8345000: Remove last mentions of sun.awt.AWTPermissions Reviewed-by: honkar, azvegint --- .../share/classes/sun/awt/AWTPermissions.java | 38 ------------------- .../sun/awt/dnd/SunDropTargetContextPeer.java | 1 - .../classes/sun/swing/SwingUtilities2.java | 1 - 3 files changed, 40 deletions(-) delete mode 100644 src/java.desktop/share/classes/sun/awt/AWTPermissions.java diff --git a/src/java.desktop/share/classes/sun/awt/AWTPermissions.java b/src/java.desktop/share/classes/sun/awt/AWTPermissions.java deleted file mode 100644 index 9fc8ab85aab..00000000000 --- a/src/java.desktop/share/classes/sun/awt/AWTPermissions.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. - * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * - * This code is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License version 2 only, as - * published by the Free Software Foundation. Oracle designates this - * particular file as subject to the "Classpath" exception as provided - * by Oracle in the LICENSE file that accompanied this code. - * - * This code is distributed in the hope that it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * version 2 for more details (a copy is included in the LICENSE file that - * accompanied this code). - * - * You should have received a copy of the GNU General Public License version - * 2 along with this work; if not, write to the Free Software Foundation, - * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. - * - * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA - * or visit www.oracle.com if you need additional information or have any - * questions. - */ -package sun.awt; - -import java.awt.AWTPermission; - -/** - * Defines the {@code AWTPermission} objects used for permission checks. - */ - -public final class AWTPermissions { - private AWTPermissions() { } - - public static final AWTPermission ACCESS_CLIPBOARD_PERMISSION = - new AWTPermission("accessClipboard"); -} diff --git a/src/java.desktop/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java b/src/java.desktop/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java index c6346fddebd..686c3166441 100644 --- a/src/java.desktop/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java +++ b/src/java.desktop/share/classes/sun/awt/dnd/SunDropTargetContextPeer.java @@ -56,7 +56,6 @@ import java.io.IOException; import java.io.InputStream; import sun.awt.AppContext; -import sun.awt.AWTPermissions; import sun.awt.SunToolkit; import sun.awt.datatransfer.DataTransferer; import sun.awt.datatransfer.ToolkitThreadBlockedHandler; diff --git a/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java b/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java index 7c2b5517e15..181d2d5d33b 100644 --- a/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java +++ b/src/java.desktop/share/classes/sun/swing/SwingUtilities2.java @@ -92,7 +92,6 @@ import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; import sun.awt.AWTAccessor; -import sun.awt.AWTPermissions; import sun.awt.AppContext; import sun.awt.SunToolkit; import sun.font.FontDesignMetrics;