mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-17 07:20:53 +07:00
do not init project inspection profile on updateProfile — it will be done in any case (was already discussed and confirmed, this part of code was not updated)
This commit is contained in:
@@ -16,12 +16,10 @@
|
||||
package com.jetbrains.rest.quickfixes;
|
||||
|
||||
import com.intellij.codeInsight.intention.LowPriorityAction;
|
||||
import com.intellij.codeInspection.InspectionProfile;
|
||||
import com.intellij.codeInspection.LocalQuickFix;
|
||||
import com.intellij.codeInspection.ProblemDescriptor;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.profile.codeInspection.InspectionProfileManager;
|
||||
import com.intellij.profile.codeInspection.InspectionProjectProfileManager;
|
||||
import com.jetbrains.rest.RestBundle;
|
||||
import com.jetbrains.rest.inspections.RestRoleInspection;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -54,8 +52,7 @@ public class AddIgnoredRoleFix implements LocalQuickFix, LowPriorityAction {
|
||||
public void applyFix(@NotNull Project project, @NotNull ProblemDescriptor descriptor) {
|
||||
if (!myInspection.ignoredRoles.contains(myRole)) {
|
||||
myInspection.ignoredRoles.add(myRole);
|
||||
final InspectionProfile profile = InspectionProjectProfileManager.getInstance(project).getCurrentProfile();
|
||||
InspectionProfileManager.getInstance().fireProfileChanged(profile);
|
||||
InspectionProfileManager.getInstance().fireProfileChanged(InspectionProfileManager.getInstance(project).getCurrentProfile());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user