mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inspection profile: tolerate commit of a model without modifications in tools (IDEA-234149)
GitOrigin-RevId: 1c54ed295201c756138507d953ba35025b24126e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2f1890ee90
commit
fbe35fb8de
@@ -107,6 +107,16 @@ public class InspectionProfileTest extends LightIdeaTestCase {
|
||||
return new InspectionProfileImpl(PROFILE, InspectionToolRegistrar.getInstance(), base);
|
||||
}
|
||||
|
||||
public void testModificationWithoutModification() {
|
||||
InspectionProfileImpl profile = createProfile();
|
||||
profile.getAllTools();
|
||||
assertTrue(profile.wasInitialized());
|
||||
assertNotEmpty(profile.myTools.keySet());
|
||||
profile.modifyProfile(m -> {});
|
||||
assertTrue(profile.wasInitialized());
|
||||
assertNotEmpty(profile.myTools.keySet());
|
||||
}
|
||||
|
||||
public void testSameNameSharedProfile() {
|
||||
BaseInspectionProfileManager profileManager = getApplicationProfileManager();
|
||||
InspectionProfileImpl localProfile = createProfile();
|
||||
|
||||
+4
-2
@@ -113,8 +113,10 @@ open class InspectionProfileModifiableModel(val source: InspectionProfileImpl) :
|
||||
description = model.description
|
||||
isProjectLevel = model.isProjectLevel
|
||||
myLockedProfile = model.myLockedProfile
|
||||
myChangedToolNames = model.myChangedToolNames
|
||||
myTools = model.myTools
|
||||
myChangedToolNames = null
|
||||
if (model.wasInitialized()) {
|
||||
myTools = model.myTools
|
||||
}
|
||||
profileManager = model.profileManager
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user