mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 02:09:59 +07:00
PY-30249: Compatibility fix (after IDEA-CR-33182)
This commit is contained in:
@@ -17,7 +17,18 @@ import java.util.List;
|
||||
public abstract class PyInspectionExtension {
|
||||
public static final ExtensionPointName<PyInspectionExtension> EP_NAME = ExtensionPointName.create("Pythonid.inspectionExtension");
|
||||
|
||||
public boolean ignoreUnused(PsiElement local, TypeEvalContext evalContext) {
|
||||
public boolean ignoreUnused(PsiElement local, @NotNull TypeEvalContext evalContext) {
|
||||
@SuppressWarnings("deprecation")
|
||||
final boolean result = ignoreUnused(local);
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* @deprecated use {@link #ignoreUnused(PsiElement, TypeEvalContext)} instead.
|
||||
* Will be removed in 2019.2
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean ignoreUnused(PsiElement local) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -44,7 +55,7 @@ public abstract class PyInspectionExtension {
|
||||
/**
|
||||
* Checks if unresolved reference could be ignored.
|
||||
*
|
||||
* @param node element containing reference
|
||||
* @param node element containing reference
|
||||
* @param reference unresolved reference
|
||||
* @return true if the unresolved reference could be ignored
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user