diff --git a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java index 027d400fccd6..bc6c6c798411 100644 --- a/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java +++ b/java/java-tests/testSrc/com/intellij/codeInspection/ex/InspectionProfileTest.java @@ -462,6 +462,35 @@ public class InspectionProfileTest extends LightIdeaTestCase { assertThat(importedProfile.writeScheme()).isEqualTo(mergedElement); } + public void testKeepUnloadedMergeNamingConventions() throws Exception { + String unchanged = "\n" + + " "; + final Element allEnabledProfile = JdomKt.loadElement(unchanged); + InspectionProfileImpl profile = createProfile(new InspectionProfileImpl("foo")); + profile.readExternal(allEnabledProfile); + profile.initInspectionTools(); + assertEquals(unchanged, serialize(profile)); + } + public void testMergeMethodNamingConventions() throws Exception { final Element element = JdomKt.loadElement("\n" + "