WEB-67650 React JSX: false positive attribute className is not allowed here with the new type evaluation

GitOrigin-RevId: b83ef3b481005bd00466ec94afc8e9d7dc097af6
This commit is contained in:
Andrey Vorobev
2024-07-17 15:20:11 +03:00
committed by intellij-monorepo-bot
parent 8648dc5c83
commit 5e5f5d088f
2 changed files with 2 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ public class HtmlUnknownAttributeInspectionBase extends HtmlUnknownElementInspec
}
}
private static ProblemHighlightType addUnknownXmlAttributeQuickFixes(XmlTag tag,
private static @NotNull ProblemHighlightType addUnknownXmlAttributeQuickFixes(XmlTag tag,
String name,
ArrayList<? super LocalQuickFix> quickfixes,
ProblemsHolder holder,

View File

@@ -9,7 +9,6 @@ import com.intellij.psi.PsiElement;
import com.intellij.psi.xml.XmlAttribute;
import com.intellij.psi.xml.XmlTag;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.util.Collection;
@@ -29,7 +28,7 @@ public interface XmlUnknownAttributeQuickFixProvider {
*/
@NotNull Collection<@NotNull LocalQuickFix> getOrRegisterAttributeFixes(@NotNull XmlTag tag, @NotNull String name, ProblemsHolder holder, boolean isFixRequired);
default @Nullable ProblemHighlightType getProblemHighlightType(@NotNull PsiElement element) {
default @NotNull ProblemHighlightType getProblemHighlightType(@NotNull PsiElement element) {
return ProblemHighlightType.GENERIC_ERROR_OR_WARNING;
}
}