public class UnusedReturnValueLocalInspection extends AbstractBaseJavaLocalInspectionTool
EMPTY_ARRAY, VALID_ID_PATTERNmyNameProvider| Constructor and Description |
|---|
UnusedReturnValueLocalInspection(UnusedReturnValue global) |
| Modifier and Type | Method and Description |
|---|---|
ProblemDescriptor [] |
checkMethod(PsiMethod method,
InspectionManager manager,
boolean isOnTheFly)
Override this to report problems at method level.
|
java.lang.String |
getGroupDisplayName() |
java.lang.String |
getShortName()
DO NOT OVERRIDE this method.
|
boolean |
runForWholeFile()
Override this method and return true if your inspection (unlike almost all others)
must be called for every element in the whole file for each change, whatever small it was.
|
buildVisitor, checkClass, checkFieldbuildVisitor, checkFile, getAlternativeID, getID, getProblemElement, getSuppressId, inspectionFinished, inspectionFinished, inspectionStarted, isValidID, processFilecleanup, createOptionsPanel, getBatchSuppressActions, getBlackList, getDefaultLevel, getDescriptionContextClass, getDescriptionFileName, getDisplayName, getGeneralGroupName, getGroupKey, getGroupPath, getMainToolId, getSerializationFilter, getShortName, getStaticDescription, getSuppressors, initialize, isEnabledByDefault, isInitialized, isSuppressedFor, loadDescription, readSettings, showDefaultConfigurationOptions, writeSettingspublic UnusedReturnValueLocalInspection(UnusedReturnValue global)
public boolean runForWholeFile()
LocalInspectionToolrunForWholeFile in class LocalInspectionToolpublic java.lang.String getGroupDisplayName()
getGroupDisplayName in class InspectionProfileEntryInspectionEP.groupDisplayName,
InspectionEP.groupKey,
InspectionEP.groupBundlepublic java.lang.String getShortName()
InspectionProfileEntrygetShortName in class InspectionProfileEntryInspectionEP.shortNamepublic ProblemDescriptor [] checkMethod(PsiMethod method, InspectionManager manager, boolean isOnTheFly)
AbstractBaseJavaLocalInspectionToolcheckMethod in class AbstractBaseJavaLocalInspectionToolmethod - to check.manager - InspectionManager to ask for ProblemDescriptors from.isOnTheFly - true if called during on the fly editor highlighting. Called from Inspect Code action otherwise.null if no problems found or not applicable at method level.