avoid HintAction if not necessary

This commit is contained in:
Alexey Kudravtsev
2013-04-26 15:07:36 +04:00
parent 6c5b8fc473
commit c56272b62a
7 changed files with 9 additions and 24 deletions
@@ -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.