diff options
author | Steffen Pingel | 2013-05-03 21:20:12 +0000 |
---|---|---|
committer | Steffen Pingel | 2013-05-03 21:20:12 +0000 |
commit | e0f0d441d846e4c8dec98767bd1a5f584e8e8ceb (patch) | |
tree | f866a85a12e75269cfc0203b4c08e411887d6d08 /org.eclipse.mylyn.bugzilla.tests | |
parent | 2dc5856cb4a08832727818afd88cd809b29ff295 (diff) | |
download | org.eclipse.mylyn.tasks-e0f0d441d846e4c8dec98767bd1a5f584e8e8ceb.tar.gz org.eclipse.mylyn.tasks-e0f0d441d846e4c8dec98767bd1a5f584e8e8ceb.tar.xz org.eclipse.mylyn.tasks-e0f0d441d846e4c8dec98767bd1a5f584e8e8ceb.zip |
406959: use SAXParserFactory instead of XMLReaderFactory
Change-Id: I025b2878056d4b642936853b588a2ef23a4ffba9
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=406959
Diffstat (limited to 'org.eclipse.mylyn.bugzilla.tests')
-rw-r--r-- | org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaConfigurationTest.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaConfigurationTest.java b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaConfigurationTest.java index be0e1af87..c3766370f 100644 --- a/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaConfigurationTest.java +++ b/org.eclipse.mylyn.bugzilla.tests/src/org/eclipse/mylyn/bugzilla/tests/core/BugzillaConfigurationTest.java @@ -19,6 +19,7 @@ import java.io.InputStreamReader; import junit.framework.TestCase; import org.eclipse.mylyn.bugzilla.tests.support.BugzillaFixture; +import org.eclipse.mylyn.commons.core.CoreUtil; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaAttribute; import org.eclipse.mylyn.internal.bugzilla.core.BugzillaRepositoryConnector; import org.eclipse.mylyn.internal.bugzilla.core.RepositoryConfiguration; @@ -29,7 +30,6 @@ import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.XMLReader; -import org.xml.sax.helpers.XMLReaderFactory; /** * @author Robert Elves @@ -126,7 +126,7 @@ public class BugzillaConfigurationTest extends TestCase { } SaxConfigurationContentHandler contentHandler = new SaxConfigurationContentHandler(); - final XMLReader reader = XMLReaderFactory.createXMLReader(); + final XMLReader reader = CoreUtil.newXmlReader(); reader.setContentHandler(contentHandler); reader.setErrorHandler(new ErrorHandler() { public void error(SAXParseException exception) throws SAXException { @@ -154,5 +154,4 @@ public class BugzillaConfigurationTest extends TestCase { } } } - } |