Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blewitt2016-04-21 21:11:13 +0000
committerGerrit Code Review @ Eclipse.org2016-04-21 22:49:32 +0000
commitccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30 (patch)
tree02575073de886a594454e26b7480127bf3f85303 /build/org.eclipse.cdt.managedbuilder.gnu.ui/src
parent8a2fd3307b261c0452f3ea08235a7d898a11a7b8 (diff)
downloadorg.eclipse.cdt-ccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30.tar.gz
org.eclipse.cdt-ccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30.tar.xz
org.eclipse.cdt-ccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30.zip
Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with `StringBuilder` provided that the type isn't visible from the public API and is used only in internal methods. Replace these where appropriate. Change-Id: I769ceb6eaee18d183fb0e00fa0d730651f8a7edb Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
Diffstat (limited to 'build/org.eclipse.cdt.managedbuilder.gnu.ui/src')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
index b3a7f54a22c..0e5a4e29f81 100644
--- a/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
+++ b/build/org.eclipse.cdt.managedbuilder.gnu.ui/src/org/eclipse/cdt/managedbuilder/gnu/templates/SimpleMakefileGenerator.java
@@ -1,5 +1,5 @@
/**********************************************************************
- * Copyright (c) 2007, 2011 QNX Software Systems and others.
+ * Copyright (c) 2007, 2016 QNX Software Systems and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -98,7 +98,7 @@ public class SimpleMakefileGenerator extends ProcessRunner {
private static final String END = "}}"; //$NON-NLS-1$
private String replaceMacros(String fileContents, Map<String, String> valueStore) {
- StringBuffer buffer = new StringBuffer(fileContents);
+ StringBuilder buffer = new StringBuilder(fileContents);
for (String key : valueStore.keySet()) {
String pattern = START + key +END;
if (fileContents.indexOf(pattern)==-1)

Back to the top