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 /lrparser | |
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 'lrparser')
-rw-r--r-- | lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java index ae768d6e3f9..dbc315ad68a 100644 --- a/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java +++ b/lrparser/org.eclipse.cdt.core.lrparser.tests/src/org/eclipse/cdt/core/lrparser/tests/LRTests.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2006, 2013 IBM Corporation and others. + * Copyright (c) 2006, 2016 IBM Corporation 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 @@ -115,7 +115,7 @@ public class LRTests extends AST2Tests { public void testBug191279() throws Exception { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append(" /**/ \n"); sb.append("# define YO 99 /**/ \n"); sb.append("# undef YO /**/ "); @@ -126,7 +126,7 @@ public class LRTests extends AST2Tests { public void testBug191324() throws Exception { - StringBuffer sb = new StringBuffer(); + StringBuilder sb = new StringBuilder(); sb.append("int x$y = 99; \n"); sb.append("int $q = 100; \n"); // can use $ as first character in identifier sb.append("#ifndef SS$_INVFILFOROP \n"); |