IDEA-142751 Use replace rather than replaceAll to avoid pattern matcher and regex use

This commit is contained in:
Sergey Malenkov
2015-07-20 12:27:56 +03:00
parent 1a5b0e06a0
commit 52a4a829ed
@@ -72,7 +72,7 @@ public class SettingsDialog extends DialogWrapper implements DataProvider {
String name = configurable == null ? null : configurable.getDisplayName();
String title = CommonBundle.settingsTitle();
if (project != null && project.isDefault()) title = "Default " + title;
setTitle(name == null ? title : name.replaceAll("\n", " "));
setTitle(name == null ? title : name.replace('\n', ' '));
init();
}