This commit is contained in:
Alexey Kudravtsev
2013-05-07 12:30:11 +04:00
parent 61153c5b09
commit 5b7f1f59d2
2 changed files with 6 additions and 2 deletions
@@ -17,6 +17,7 @@ package com.intellij.codeInspection;
import com.intellij.util.ArrayFactory;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
/**
* Base class for problems returned by local and global inspection tools.
@@ -43,12 +44,14 @@ public interface CommonProblemDescriptor {
*
* @return the template for the problem description.
*/
@NotNull String getDescriptionTemplate();
@NotNull
String getDescriptionTemplate();
/**
* Returns the quickfixes for the problem.
*
* @return the list of quickfixes registered for the problem.
*/
@Nullable
QuickFix[] getFixes();
}
@@ -40,7 +40,8 @@ public interface QuickFix<D extends CommonProblemDescriptor> {
* if the name of the quickfix is "Create template &lt;filename&gt", the return value of getFamilyName() should be "Create template".
* If the name of the quickfix does not depend on a specific element, simply return getName().
*/
@NotNull String getFamilyName();
@NotNull
String getFamilyName();
/**
* Called to apply the fix.