eclipse-jdt/eclipse.jdt.core

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

Open

#469 aberto em 12 de out. de 2022

Ver no GitHub
 (5 comments) (0 reactions) (1 assignee)Java (183 forks)auto 404
bughelp wanted

Métricas do repositório

Stars
 (233 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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");
	}
}

Guia do colaborador