inspection profile: no need to initialize on write when tool was not initialized (=had default settings on read)

This commit is contained in:
anna
2013-11-25 20:48:19 +01:00
parent fdb3b7421f
commit 92adf45aae
2 changed files with 7 additions and 3 deletions
@@ -313,7 +313,7 @@ public class InspectionProfileTest extends LightIdeaTestCase {
assertEquals(0, countInitializedTools(profile));
profile.writeExternal(new Element("profile"));
List<InspectionToolWrapper> initializedTools = getInitializedTools(profile);
if (initializedTools.size() != 1) {
if (initializedTools.size() > 0) {
for (InspectionToolWrapper initializedTool : initializedTools) {
System.out.println(initializedTool.getShortName());
}