public class ReplaceComputeWithComputeIfPresentFix extends java.lang.Object implements LocalQuickFix, HighPriorityAction
PriorityAction.Priority
EMPTY_ARRAY
Constructor and Description |
---|
ReplaceComputeWithComputeIfPresentFix() |
Modifier and Type | Method and Description |
---|---|
void |
applyFix(Project project,
ProblemDescriptor descriptor)
Called to apply the fix.
|
java.lang.String |
getFamilyName() |
static ReplaceComputeWithComputeIfPresentFix |
makeFix(PsiElement reference) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getElementToMakeWritable
startInWriteAction
getPriority
public ReplaceComputeWithComputeIfPresentFix()
public java.lang.String getFamilyName()
getFamilyName
in interface QuickFix<ProblemDescriptor>
QuickFix.getName()
.public void applyFix(Project project, ProblemDescriptor descriptor)
QuickFix
Please call com.intellij.profile.codeInspection.ProjectInspectionProfileManager#fireProfileChanged()
if inspection profile is changed as result of fix.
applyFix
in interface QuickFix<ProblemDescriptor>
project
- Project
descriptor
- problem reported by the tool which provided this quick fix actionpublic static ReplaceComputeWithComputeIfPresentFix makeFix(PsiElement reference)