diff options
author | Alex Blewitt | 2016-04-21 22:10:01 +0000 |
---|---|---|
committer | Sergey Prigogin | 2016-04-21 22:51:12 +0000 |
commit | 6b0a04c15e8536bc267b738239a5c2716bcf6733 (patch) | |
tree | edbf3e41039cea8bbe33452259871606781fe3a5 /core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java | |
parent | ccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30 (diff) | |
download | org.eclipse.cdt-6b0a04c15e8536bc267b738239a5c2716bcf6733.tar.gz org.eclipse.cdt-6b0a04c15e8536bc267b738239a5c2716bcf6733.tar.xz org.eclipse.cdt-6b0a04c15e8536bc267b738239a5c2716bcf6733.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: I2634593603eef88dd68e127de9319377f43e7436
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
Diffstat (limited to 'core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java')
-rw-r--r-- | core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java index bc1be07d688..6050e260c28 100644 --- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java +++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/MacroEntry.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2011 QNX Software Systems and others. + * Copyright (c) 2000, 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 @@ -92,7 +92,7 @@ public class MacroEntry extends APathEntry implements IMacroEntry { */ @Override public String toString() { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append(super.toString()); if (macroName != null && macroName.length() > 0) { sb.append(" name:").append(macroName); //$NON-NLS-1$ |