diff options
author | Alex Blewitt | 2016-04-21 22:35:17 +0000 |
---|---|---|
committer | Sergey Prigogin | 2016-04-22 03:17:03 +0000 |
commit | 2356a29c7015ad41cfe8630568a1c3ab5c3c5eb3 (patch) | |
tree | 834bab2dc4a5287047b0ee87c96903bb9d4f20e2 /windows | |
parent | e901d4a7d4298b999365288b6b5b8d018b75ae73 (diff) | |
download | org.eclipse.cdt-2356a29c7015ad41cfe8630568a1c3ab5c3c5eb3.tar.gz org.eclipse.cdt-2356a29c7015ad41cfe8630568a1c3ab5c3c5eb3.tar.xz org.eclipse.cdt-2356a29c7015ad41cfe8630568a1c3ab5c3c5eb3.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: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
Diffstat (limited to 'windows')
-rw-r--r-- | windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/msw/build/WinEnvironmentVariableSupplier.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/msw/build/WinEnvironmentVariableSupplier.java b/windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/msw/build/WinEnvironmentVariableSupplier.java index 90a842c132c..867ab801c0d 100644 --- a/windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/msw/build/WinEnvironmentVariableSupplier.java +++ b/windows/org.eclipse.cdt.msw.build/src/org/eclipse/cdt/msw/build/WinEnvironmentVariableSupplier.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2007 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 @@ -154,7 +154,7 @@ public class WinEnvironmentVariableSupplier } // INCLUDE - StringBuffer buff = new StringBuffer(); + StringBuilder buff = new StringBuilder(); IPath includePaths[] = getIncludePath(); for (IPath path : includePaths) { buff.append(path.toOSString()).append(';'); @@ -162,7 +162,7 @@ public class WinEnvironmentVariableSupplier addvar(new WindowsBuildEnvironmentVariable("INCLUDE", buff.toString(), IBuildEnvironmentVariable.ENVVAR_PREPEND)); // LIB - buff = new StringBuffer(); + buff = new StringBuilder(); if (vcDir != null) buff.append(vcDir).append("Lib;"); if (sdkDir != null) { @@ -173,7 +173,7 @@ public class WinEnvironmentVariableSupplier addvar(new WindowsBuildEnvironmentVariable("LIB", buff.toString(), IBuildEnvironmentVariable.ENVVAR_PREPEND)); // PATH - buff = new StringBuffer(); + buff = new StringBuilder(); if (vcDir != null) { buff.append(vcDir).append("..\\Common7\\IDE;"); buff.append(vcDir).append("..\\Common7\\Tools;"); |