diff --git a/ide/bugzilla/src/org/netbeans/modules/bugzilla/commands/BugzillaExecutor.java b/ide/bugzilla/src/org/netbeans/modules/bugzilla/commands/BugzillaExecutor.java
index 7f0da48acbfc..a65f48336ffb 100644
--- a/ide/bugzilla/src/org/netbeans/modules/bugzilla/commands/BugzillaExecutor.java
+++ b/ide/bugzilla/src/org/netbeans/modules/bugzilla/commands/BugzillaExecutor.java
@@ -308,7 +308,7 @@ private static String parseHtmlMessage(String html, boolean htmlTextIsAllYouGot)
html = html.substring(idxS, idxE);
// very nice
- html = html.replaceAll("Please press \\Back\\ and try again.", ""); // NOI18N
+ html = html.replace("Please press Back and try again.", ""); // NOI18N
return html;
}
diff --git a/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/MacroMap.java b/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/MacroMap.java
index 4450204089c5..3731b56a202b 100644
--- a/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/MacroMap.java
+++ b/ide/dlight.nativeexecution/src/org/netbeans/modules/nativeexecution/api/util/MacroMap.java
@@ -237,7 +237,7 @@ public void prependPathVariable(String name, String path) {
String oldpath = get(name);
String newPath = path + (oldpath == null ? "" : (isWindows ? ';' : ':') + oldpath); // NOI18N
- newPath = newPath.replaceAll("::", ":"); // NOI18N
+ newPath = newPath.replace("::", ":"); // NOI18N
newPath = newPath.replaceAll("^:", ""); // NOI18N
newPath = newPath.replaceAll(":$", ""); // NOI18N
put(name, newPath);
diff --git a/ide/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitPanel.java b/ide/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitPanel.java
index 58ff38918396..914ab24807fc 100644
--- a/ide/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitPanel.java
+++ b/ide/mercurial/src/org/netbeans/modules/mercurial/ui/commit/CommitPanel.java
@@ -306,7 +306,7 @@ private void initHooksPanel() {
JTabbedPane hooksTabbedPane = new JTabbedPane();
for (HgHook hook : hooks) {
hooksTabbedPane.add(hook.createComponent(hookContext),
- hook.getDisplayName().replaceAll("\\&", ""));
+ hook.getDisplayName().replace("&", ""));
}
hookSectionPanel.add(hooksTabbedPane);
}
diff --git a/ide/subversion/src/org/netbeans/modules/subversion/ui/commit/CommitPanel.java b/ide/subversion/src/org/netbeans/modules/subversion/ui/commit/CommitPanel.java
index 7ca61cc5c093..4e27036d1feb 100644
--- a/ide/subversion/src/org/netbeans/modules/subversion/ui/commit/CommitPanel.java
+++ b/ide/subversion/src/org/netbeans/modules/subversion/ui/commit/CommitPanel.java
@@ -302,7 +302,7 @@ private void initHooksPanel() {
JTabbedPane hooksTabbedPane = new JTabbedPane();
for (SvnHook hook : hooks) {
hooksTabbedPane.add(hook.createComponent(hookContext),
- hook.getDisplayName().replaceAll("\\&", ""));
+ hook.getDisplayName().replace("&", ""));
}
hooksSectionPanel.add(hooksTabbedPane);
}
diff --git a/ide/versioning.util/src/org/netbeans/modules/versioning/util/common/CollapsiblePanel.java b/ide/versioning.util/src/org/netbeans/modules/versioning/util/common/CollapsiblePanel.java
index e42da20b3c43..85bf7e85f20c 100644
--- a/ide/versioning.util/src/org/netbeans/modules/versioning/util/common/CollapsiblePanel.java
+++ b/ide/versioning.util/src/org/netbeans/modules/versioning/util/common/CollapsiblePanel.java
@@ -212,7 +212,7 @@ public HookPanel(VCSCommitPanel master, Collection extends VCSHook> hooks, VCS
} else {
JTabbedPane hooksTabbedPane = new JTabbedPane();
for (VCSHook hook : hooks) {
- hooksTabbedPane.add(hook.createComponent(hookContext), hook.getDisplayName().replaceAll("\\&", ""));
+ hooksTabbedPane.add(hook.createComponent(hookContext), hook.getDisplayName().replace("&", ""));
}
sectionPanel.add(hooksTabbedPane);
}
diff --git a/ide/xml/test/qa-functional/src/org/netbeans/xml/test/actions/XMLActionsTest.java b/ide/xml/test/qa-functional/src/org/netbeans/xml/test/actions/XMLActionsTest.java
index a5ff9a2edfbd..b8957ff575a0 100644
--- a/ide/xml/test/qa-functional/src/org/netbeans/xml/test/actions/XMLActionsTest.java
+++ b/ide/xml/test/qa-functional/src/org/netbeans/xml/test/actions/XMLActionsTest.java
@@ -165,7 +165,7 @@ public void testXSLT() throws Exception{
Thread.sleep(1000);//wait for opening a window
String text = new EditorOperator(outputName).getText();
//create one line because of Windows are adding few empty lines
- text = text.replaceAll("\n", "");
+ text = text.replace("\n", "");
ref(text);
ending();
}
diff --git a/nbi/engine/src/org/netbeans/installer/utils/system/launchers/impl/ShLauncher.java b/nbi/engine/src/org/netbeans/installer/utils/system/launchers/impl/ShLauncher.java
index 1b8698e97111..6d695314f539 100644
--- a/nbi/engine/src/org/netbeans/installer/utils/system/launchers/impl/ShLauncher.java
+++ b/nbi/engine/src/org/netbeans/installer/utils/system/launchers/impl/ShLauncher.java
@@ -297,7 +297,7 @@ private String escapeChars(String str) {
replace("\t","\\\\t").
replace("\r","\\\\r").
replace("`","\\`").
- replaceAll("\"","\\\\\"");
+ replace("\"","\\\\\"");
}
private String escapeSlashesAndChars(String str) {