From 2356a29c7015ad41cfe8630568a1c3ab5c3c5eb3 Mon Sep 17 00:00:00 2001 From: Alex Blewitt Date: Thu, 21 Apr 2016 23:35:17 +0100 Subject: 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 --- .../src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java | 2 +- .../src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'codan/org.eclipse.cdt.codan.core') diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java index b210c079047..4ba3e2cbe1a 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/ListProblemPreference.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009,2012 QNX Software Systems + * Copyright (c) 2009, 2016 QNX Software Systems * 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 diff --git a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java index 6f690fcdee2..ff62f29a641 100644 --- a/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java +++ b/codan/org.eclipse.cdt.codan.core/src/org/eclipse/cdt/codan/core/param/MapProblemPreference.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2009, 2012 QNX Software Systems + * Copyright (c) 2009, 2016 QNX Software Systems * 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 @@ -139,7 +139,7 @@ public class MapProblemPreference extends AbstractProblemPreference @Override public String exportValue() { synchronized (hash) { - StringBuffer buf = new StringBuffer("{"); //$NON-NLS-1$ + StringBuilder buf = new StringBuilder("{"); //$NON-NLS-1$ for (Iterator iterator = hash.keySet().iterator(); iterator.hasNext();) { String key = iterator.next(); IProblemPreference d = hash.get(key); -- cgit v1.2.3