diff options
author | Alexander Kurtakov | 2016-02-08 10:26:06 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2016-02-08 10:26:06 +0000 |
commit | d7c3b1ff552cefcdf128d6ea84df29b6a4770354 (patch) | |
tree | 0c5742e7382182810214e74085a2c8b245b6b19b /org.eclipse.ua.tests/base/org/eclipse/ua | |
parent | 24ee16ef8c752d8d2b6b8425d663dd0fbfb8b35d (diff) | |
download | eclipse.platform.ua-d7c3b1ff552cefcdf128d6ea84df29b6a4770354.tar.gz eclipse.platform.ua-d7c3b1ff552cefcdf128d6ea84df29b6a4770354.tar.xz eclipse.platform.ua-d7c3b1ff552cefcdf128d6ea84df29b6a4770354.zip |
Bug 485922 - Remove trailing white spaces in org.eclipse.ua.testsI20160209-0800
Mass remove in all java files.
Change-Id: I51b8600fb0e80bb12f326c882e48328900a721d7
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Diffstat (limited to 'org.eclipse.ua.tests/base/org/eclipse/ua')
6 files changed, 25 insertions, 25 deletions
diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java index af410ca3c..49c350af0 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/AllPerformanceTests.java @@ -4,7 +4,7 @@ * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html - * + * * Contributors: * IBM Corporation - initial API and implementation *******************************************************************************/ @@ -34,7 +34,7 @@ public class AllPerformanceTests extends TestSuite { public AllPerformanceTests() { addTest(AllCheatSheetPerformanceTests.suite()); addTest(AllHelpPerformanceTests.suite()); - + /* * Disabled due to inability to backport test to 3.2. Internal * test hooks were added in 3.2.2 code base but do not exist in 3.2 diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/plugin/UserAssistanceTestPlugin.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/plugin/UserAssistanceTestPlugin.java index ba5ec7729..05207ae88 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/plugin/UserAssistanceTestPlugin.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/plugin/UserAssistanceTestPlugin.java @@ -15,7 +15,7 @@ import org.eclipse.ui.plugin.AbstractUIPlugin; public class UserAssistanceTestPlugin extends AbstractUIPlugin { //The shared instance. private static UserAssistanceTestPlugin plugin; - + /** * The constructor. */ @@ -23,14 +23,14 @@ public class UserAssistanceTestPlugin extends AbstractUIPlugin { super(); plugin = this; } - + /** * Returns the shared instance. */ public static UserAssistanceTestPlugin getDefault() { return plugin; } - + /** * @return the id of this plugin */ diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java index 3335e6aca..6fe185300 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/FileUtil.java @@ -42,7 +42,7 @@ public class FileUtil { public static String getContents(String absolutePath) throws IOException { return readString(new FileInputStream(absolutePath)); } - + /** * Generates a filename with path to the result file that will be generated * for the intro xml referred to by the string. diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java index 100c7fd6e..2162a828d 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/ResourceFinder.java @@ -34,7 +34,7 @@ public class ResourceFinder { public static URL findFile(Plugin plugin, String path) { return FileLocator.find(plugin.getBundle(), new Path(path), null); } - + /* * Finds and returns URLs to all files in the plugin directory under the given * folder with the given suffix. Can also recursively traverse all subfolders. @@ -52,11 +52,11 @@ public class ResourceFinder { path = new Path(Platform.getInstallLocation().getURL().toString().substring("file:".length()) + path); file = path.toFile(); } - + File[] files = path.toFile().listFiles(); return findFiles(files, suffix, recursive); } - + /* * Finds and returns URLs to all files in the given list that have the given suffix, and * recursively traverses subdirectories if requested. @@ -82,10 +82,10 @@ public class ResourceFinder { } } } - + URL[] array = new URL[list.size()]; list.toArray(array); return array; } - + } diff --git a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java index efca75dd5..85da6e915 100644 --- a/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java +++ b/org.eclipse.ua.tests/base/org/eclipse/ua/tests/util/XHTMLUtil.java @@ -14,7 +14,7 @@ package org.eclipse.ua.tests.util; * A utility class for working with XHTML. */ public class XHTMLUtil { - + /* * Some of the XHTML content is environment-specific. This means it changes * depending on the test machine, location on filesystem, etc. This content @@ -27,7 +27,7 @@ public class XHTMLUtil { * the closing part "/>". The Sun 1.5 JDK's XML DOM serializer will * always remove it, and 1.4 will always add it, so need to pick one * and adapt all documents to it. - * + * * For example: * <myElement myAttribute="myValue" /> * becomes: 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 e012909a0..f6540bc69 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 @@ -35,7 +35,7 @@ import org.eclipse.help.internal.entityresolver.LocalEntityResolver; * A utility class for working with XML. */ public class XMLUtil extends Assert { - + public static void assertXMLEquals(String msg, String s1, String s2) throws Exception { InputStream in1 = new ByteArrayInputStream(s1.getBytes("UTF-8")); InputStream in2 = new ByteArrayInputStream(s2.getBytes("UTF-8")); @@ -47,7 +47,7 @@ public class XMLUtil extends Assert { String s2 = process(in2); assertEquals(msg, s1, s2); } - + public static void assertParseableXML(String s) { try { InputStream in1 = new ByteArrayInputStream(s.getBytes("UTF-8")); @@ -56,7 +56,7 @@ public class XMLUtil extends Assert { fail("Unable to parse source: " + s); } } - + private static String process(InputStream in) throws Exception { SAXParserFactory factory = SAXParserFactory.newInstance(); SAXParser parser = factory.newSAXParser(); @@ -64,12 +64,12 @@ public class XMLUtil extends Assert { parser.parse(in, handler); return handler.toString(); } - + private static class Handler extends DefaultHandler { - + private StringBuffer buf = new StringBuffer(); 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) */ @@ -77,7 +77,7 @@ public class XMLUtil extends Assert { public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { buf.append('<'); buf.append(qName); - + List<String> list = new ArrayList<String>(); for (int i=0;i<attributes.getLength();++i) { list.add(attributes.getQName(i)); @@ -95,7 +95,7 @@ public class XMLUtil extends Assert { } buf.append('>'); } - + /* (non-Javadoc) * @see org.xml.sax.helpers.DefaultHandler#endElement(java.lang.String, java.lang.String, java.lang.String) */ @@ -105,8 +105,8 @@ public class XMLUtil extends Assert { buf.append('/'); buf.append(qName); buf.append('>'); - } - + } + /* (non-Javadoc) * @see org.xml.sax.helpers.DefaultHandler#characters(char[], int, int) */ @@ -114,11 +114,11 @@ public class XMLUtil extends Assert { public void characters(char[] ch, int start, int length) throws SAXException { buf.append(ch, start, length); } - + /* * Note: throws clause does not declare IOException due to a bug in * sun jdk: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6327149 - * + * * @see org.xml.sax.helpers.DefaultHandler#resolveEntity(java.lang.String, java.lang.String) */ @Override |