mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
@FunctionalInterface make warning to prevent misunderstanding
This commit is contained in:
+1
-1
@@ -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
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user