eclipse-jdt/eclipse.jdt.core

"deprecation" + "removal" warnings are not suppressable simultaneously

Open

#469 geöffnet am 12. Okt. 2022

Auf GitHub ansehen
 (5 Kommentare) (0 Reaktionen) (1 zugewiesene Person)Java (183 Forks)auto 404
bughelp wanted

Repository-Metriken

Stars
 (233 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

With Eclipse 2022-09 and Java 17 it seems not to be possible to suppress both removal and deprecation warnings on the class level.

//@SuppressWarnings("deprecation")
//@SuppressWarnings("removal")
@SuppressWarnings({ "deprecation", "removal" })
public final class Foo
{
	public void test() 
	{
		throw new AccessControlException("foo");
	}
}

Contributor Guide