8177723: Suppress lint removal warning in java.se.ee and jdk.unsupported
Reviewed-by: lancea, chegar
This commit is contained in:
parent
d4bc626eb3
commit
9ba92f656c
jdk/src
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user