eclipse-jdt/eclipse.jdt.core

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

Open

#469 aperta il 12 ott 2022

Vedi su GitHub
 (5 commenti) (0 reazioni) (1 assegnatario)Java (183 fork)auto 404
bughelp wanted

Metriche repository

Star
 (233 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

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

Guida contributor