Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kurtakov2017-09-09 05:19:16 +0000
committerAlexander Kurtakov2017-09-09 05:19:16 +0000
commitb01ac61998096f896a01308f8f85cccf49eacdd5 (patch)
tree2a5d2099fb596063226054e2adbe79035d2f4ff2 /org.eclipse.ua.tests/base/org/eclipse/ua/tests/util
parent00f7de7ddcabe81ebcdbbb15d6f8dc03c5fae8f0 (diff)
downloadeclipse.platform.ua-b01ac61998096f896a01308f8f85cccf49eacdd5.tar.gz
eclipse.platform.ua-b01ac61998096f896a01308f8f85cccf49eacdd5.tar.xz
eclipse.platform.ua-b01ac61998096f896a01308f8f85cccf49eacdd5.zip
Bug 520255 - Replace StringBuffer with StringBuilder in
eclipse.platform.ua Change-Id: Id1b13e8bb510dfdd4e4b8ff2f1f466f6b89fd513 Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua/tests/util')
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/UATestContentProducer.java4
-rw-r--r--org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java7
2 files changed, 4 insertions, 7 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/UATestContentProducer.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/UATestContentProducer.java
index 06165a4bb..247603b8e 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/UATestContentProducer.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/UATestContentProducer.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2009, 2015 IBM Corporation and others.
+ * Copyright (c) 2009, 2017 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
@@ -45,7 +45,7 @@ public class UATestContentProducer implements IHelpContentProducer {
}
private String filterNonAlpha(String input) {
- StringBuffer output = new StringBuffer();
+ StringBuilder output = new StringBuilder();
for (int i = 0; i < input.length(); i++) {
char c = input.charAt(i);
if (c == ' ' || Character.isLetter(c)) {
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
index b9fb8e94f..0ccef862f 100644
--- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
+++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XMLUtil.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2016 IBM Corporation and others.
+ * Copyright (c) 2006, 2017 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
@@ -67,12 +67,9 @@ public class XMLUtil extends Assert {
private static class Handler extends DefaultHandler {
- private StringBuffer buf = new StringBuffer();
+ private StringBuilder buf = new StringBuilder();
private EntityResolver entityResolver = new LocalEntityResolver();
- /* (non-Javadoc)
- * @see org.xml.sax.helpers.DefaultHandler#startElement(java.lang.String, java.lang.String, java.lang.String, org.xml.sax.Attributes)
- */
@Override
public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException {
buf.append('<');

Back to the top