From 9ba92f656ccbbb52d71431085c0be6f7d9b4e0d2 Mon Sep 17 00:00:00 2001 From: Joe Darcy Date: Thu, 13 Apr 2017 11:16:25 -0700 Subject: [PATCH] 8177723: Suppress lint removal warning in java.se.ee and jdk.unsupported Reviewed-by: lancea, chegar --- jdk/src/java.se.ee/share/classes/module-info.java | 3 ++- .../jdk.unsupported/share/classes/sun/reflect/Reflection.java | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/jdk/src/java.se.ee/share/classes/module-info.java b/jdk/src/java.se.ee/share/classes/module-info.java index c12f8048963..983a4c7c71d 100644 --- a/jdk/src/java.se.ee/share/classes/module-info.java +++ b/jdk/src/java.se.ee/share/classes/module-info.java @@ -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; diff --git a/jdk/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java b/jdk/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java index 29d864557ac..ff6c0c6e3ee 100644 --- a/jdk/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java +++ b/jdk/src/jdk.unsupported/share/classes/sun/reflect/Reflection.java @@ -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");