mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-02-04 15:06:56 +07:00
nullability for InspectionProfileWrapper
GitOrigin-RevId: 36861372fd4c124fd245fdf3602476a30e4326da
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4d6e4a513b
commit
7750d38f8d
@@ -1,4 +1,4 @@
|
|||||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||||
package com.intellij.codeInspection.ex;
|
package com.intellij.codeInspection.ex;
|
||||||
|
|
||||||
import com.intellij.codeHighlighting.HighlightDisplayLevel;
|
import com.intellij.codeHighlighting.HighlightDisplayLevel;
|
||||||
@@ -68,7 +68,7 @@ public class InspectionProfileWrapper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isToolEnabled(final HighlightDisplayKey key, PsiElement element) {
|
public boolean isToolEnabled(@Nullable HighlightDisplayKey key, PsiElement element) {
|
||||||
return myProfile.isToolEnabled(key, element);
|
return myProfile.isToolEnabled(key, element);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ public class SpellCheckingEditorCustomization extends SimpleEditorCustomization
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean isToolEnabled(HighlightDisplayKey key, PsiElement element) {
|
public boolean isToolEnabled(HighlightDisplayKey key, PsiElement element) {
|
||||||
return SPELL_CHECK_TOOLS.containsKey(key.toString()) ? myUseSpellCheck : super.isToolEnabled(key, element);
|
return (key != null && SPELL_CHECK_TOOLS.containsKey(key.toString()) ? myUseSpellCheck : super.isToolEnabled(key, element));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user