Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Blewitt2016-04-21 22:10:01 +0000
committerSergey Prigogin2016-04-21 22:51:12 +0000
commit6b0a04c15e8536bc267b738239a5c2716bcf6733 (patch)
treeedbf3e41039cea8bbe33452259871606781fe3a5 /core/org.eclipse.cdt.core.linux
parentccbab86d6cd5f9c6c6a2e53cd6505a95b45d6f30 (diff)
downloadorg.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.linux')
-rw-r--r--core/org.eclipse.cdt.core.linux/src/org/eclipse/cdt/internal/core/linux/ProcessList.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core.linux/src/org/eclipse/cdt/internal/core/linux/ProcessList.java b/core/org.eclipse.cdt.core.linux/src/org/eclipse/cdt/internal/core/linux/ProcessList.java
index 35e864d1222..740c64a9db9 100644
--- a/core/org.eclipse.cdt.core.linux/src/org/eclipse/cdt/internal/core/linux/ProcessList.java
+++ b/core/org.eclipse.cdt.core.linux/src/org/eclipse/cdt/internal/core/linux/ProcessList.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2010 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
@@ -59,7 +59,7 @@ public class ProcessList implements IProcessList {
processInfo = new ProcessInfo[pidFiles.length];
for (int i = 0; i < pidFiles.length; i++) {
File cmdLine = new File(pidFiles[i], "cmdline"); //$NON-NLS-1$
- StringBuffer line = new StringBuffer();
+ StringBuilder line = new StringBuilder();
FileReader reader = null;
try {
reader = new FileReader(cmdLine);

Back to the top