invalid @FunctionalInterface severity change warning -> error (IDEA-120162)

This commit is contained in:
Anna Kozlova
2014-02-03 19:35:40 +04:00
parent b268a7f59c
commit 21fe45f5ad
4 changed files with 9 additions and 5 deletions
@@ -1,4 +1,4 @@
<warning descr="Multiple non-overriding abstract methods found">@FunctionalInterface</warning>
<error descr="Multiple non-overriding abstract methods found">@FunctionalInterface</error>
interface Test {
void foo();
void bar();
@@ -31,7 +31,7 @@ public class FunctionalInterfaceTest extends LightDaemonAnalyzerTestCase {
final PsiClass psiClass = getJavaFacade().findClass("Foo", GlobalSearchScope.projectScope(getProject()));
assertNotNull("Class Foo not found", psiClass);
final String errorMessage = LambdaHighlightingUtil.checkInterfaceFunctional(psiClass);
final String errorMessage = LambdaHighlightingUtil.checkInterfaceFunctional(getJavaFacade().getElementFactory().createType(psiClass));
assertEquals(expectedErrorMessage, errorMessage);
}