8177723: Suppress lint removal warning in java.se.ee and jdk.unsupported

Reviewed-by: lancea, chegar
This commit is contained in:
Joe Darcy 2017-04-13 11:16:25 -07:00
parent d4bc626eb3
commit 9ba92f656c
2 changed files with 4 additions and 2 deletions
jdk/src
java.se.ee/share/classes
jdk.unsupported/share/classes/sun/reflect

@ -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;

@ -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 @@ public class Reflection {
* 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");