eclipse-jdt/eclipse.jdt.core

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

Open

#469 opened on 2022年10月12日

GitHub で見る
 (5 comments) (0 reactions) (1 assignee)Java (183 forks)auto 404
bughelp wanted

Repository metrics

Stars
 (233 stars)
PR merge metrics
 (PR metrics pending)

説明

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

コントリビューターガイド