8177684: Suppress lint removal warnings in AppletSecurity
authordarcy
Thu, 13 Apr 2017 11:05:48 -0700
changeset 44666 ffe3d1d9f7a1
parent 44665 4bfab66ae1cb
child 44667 f21890b3f82d
8177684: Suppress lint removal warnings in AppletSecurity Reviewed-by: mchung, mullan
jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java
--- a/jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java	Thu Apr 13 10:59:43 2017 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/applet/AppletSecurity.java	Thu Apr 13 11:05:48 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1995, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1995, 2017, 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
@@ -109,7 +109,8 @@
     /**
      * get the current (first) instance of an AppletClassLoader on the stack.
      */
-    @SuppressWarnings("deprecation")
+    @SuppressWarnings({"deprecation",
+                       "removal"}) // SecurityManager.currentClassLoader()
     private AppletClassLoader currentAppletClassLoader()
     {
         // try currentClassLoader first
@@ -298,7 +299,8 @@
      * @exception  SecurityException  if the caller does not have
      *             permission to access the AWT event queue.
      */
-    @SuppressWarnings("deprecation")
+    @SuppressWarnings({"deprecation",
+                       "removal"}) //  SecurityManager.checkAwtEventQueueAccess
     public void checkAwtEventQueueAccess() {
         AppContext appContext = AppContext.getAppContext();
         AppletClassLoader appletClassLoader = currentAppletClassLoader();