@FunctionalInterface make warning to prevent misunderstanding

This commit is contained in:
anna
2013-07-15 13:41:52 +02:00
parent fccac656d2
commit 68a43aa534
2 changed files with 2 additions and 2 deletions
@@ -575,7 +575,7 @@ public class AnnotationsHighlightUtil {
public static HighlightInfo checkFunctionalInterface(PsiAnnotation annotation) {
final String errorMessage = LambdaUtil.checkFunctionalInterface(annotation);
if (errorMessage != null) {
return HighlightInfo.newHighlightInfo(HighlightInfoType.ERROR).range(annotation).descriptionAndTooltip(errorMessage).create();
return HighlightInfo.newHighlightInfo(HighlightInfoType.WARNING).range(annotation).descriptionAndTooltip(errorMessage).create();
}
return null;
}
@@ -1,4 +1,4 @@
<error descr="Multiple non-overriding abstract methods found">@FunctionalInterface</error>
<warning descr="Multiple non-overriding abstract methods found">@FunctionalInterface</warning>
interface Test {
void foo();
void bar();