mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
avoid HintAction if not necessary
This commit is contained in:
@@ -47,17 +47,6 @@ public abstract class RestInspectionVisitor extends RestElementVisitor {
|
||||
}
|
||||
}
|
||||
|
||||
protected final void registerProblem(final PsiElement element,
|
||||
final String message,
|
||||
final ProblemHighlightType type,
|
||||
final HintAction action) {
|
||||
if (element == null || element.getTextLength() == 0){
|
||||
return;
|
||||
}
|
||||
if (myHolder != null) {
|
||||
myHolder.registerProblem(myHolder.getManager().createProblemDescriptor(element, message, type, action, myHolder.isOnTheFly()));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The most full-blown version.
|
||||
|
||||
Reference in New Issue
Block a user