changeset 16998:2b4bacfcbe17

8177723: Suppress lint removal warning in java.se.ee and jdk.unsupported Reviewed-by: lancea, chegar
author darcy
date Thu, 13 Apr 2017 11:16:25 -0700
parents 2c28af3a1e5d
children 5f24e5bf62bd
files src/java.se.ee/share/classes/module-info.java src/jdk.unsupported/share/classes/sun/reflect/Reflection.java
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.se.ee/share/classes/module-info.java	Thu Apr 13 11:08:52 2017 -0700
+++ b/src/java.se.ee/share/classes/module-info.java	Thu Apr 13 11:16:25 2017 -0700
@@ -32,7 +32,8 @@
  * @moduleGraph
  * @since 9
  */
-@SuppressWarnings("deprecation")
+@SuppressWarnings({"deprecation",
+                   "removal"}) // java.corba and other modules
 module java.se.ee {
 
     requires transitive java.se;
--- a/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java	Thu Apr 13 11:08:52 2017 -0700
+++ b/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java	Thu Apr 13 11:16:25 2017 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2001, 2016, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2001, 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
@@ -35,6 +35,7 @@
      * with {@link StackWalker.StackFrame#getDeclaringClass} instead.
      */
     @Deprecated(forRemoval=true)
+    @SuppressWarnings("removal") // Reflection.getCallerClass
     public static Class<?> getCallerClass(int depth) {
         if (depth < 0)
             throw new InternalError("depth must be positive");