eclipse-jdt/eclipse.jdt.core

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

Open

#469 ouverte le 12 oct. 2022

Voir sur GitHub
 (5 commentaires) (0 réactions) (1 assigné)Java (183 forks)auto 404
bughelp wanted

Métriques du dépôt

Stars
 (233 stars)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur