diff options
3 files changed, 7 insertions, 8 deletions
diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java index 1d4868b69..972cdb511 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/AbstractReportFactory.java @@ -20,6 +20,7 @@ import java.io.Reader; import java.io.StringReader; import java.security.GeneralSecurityException; +import org.eclipse.mylyn.commons.core.CoreUtil; import org.xml.sax.EntityResolver; import org.xml.sax.ErrorHandler; import org.xml.sax.InputSource; @@ -27,7 +28,6 @@ import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.DefaultHandler; -import org.xml.sax.helpers.XMLReaderFactory; /** * @author Rob Elves @@ -87,7 +87,7 @@ public class AbstractReportFactory { } try { - final XMLReader reader = XMLReaderFactory.createXMLReader(); + final XMLReader reader = CoreUtil.newXmlReader(); reader.setFeature("http://xml.org/sax/features/validation", false); //$NON-NLS-1$ reader.setContentHandler(contentHandler); 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 { } } } - } diff --git a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/XmlExternalizationTest.java b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/XmlExternalizationTest.java index e588cc95b..88e667a26 100644 --- a/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/XmlExternalizationTest.java +++ b/org.eclipse.mylyn.tasks.tests/src/org/eclipse/mylyn/tasks/tests/data/XmlExternalizationTest.java @@ -23,6 +23,7 @@ import javax.xml.transform.stream.StreamResult; import junit.framework.TestCase; +import org.eclipse.mylyn.commons.core.CoreUtil; import org.eclipse.mylyn.internal.tasks.core.data.ITaskDataConstants; import org.xml.sax.ErrorHandler; import org.xml.sax.InputSource; @@ -31,7 +32,6 @@ import org.xml.sax.SAXParseException; import org.xml.sax.XMLReader; import org.xml.sax.helpers.AttributesImpl; import org.xml.sax.helpers.DefaultHandler; -import org.xml.sax.helpers.XMLReaderFactory; /** * @author Steffen Pingel @@ -95,7 +95,7 @@ public class XmlExternalizationTest extends TestCase { SimpleCharacterWriter writer = new SimpleCharacterWriter(handler); writer.write(badChar); - XMLReader parser = XMLReaderFactory.createXMLReader(); + XMLReader parser = CoreUtil.newXmlReader(); parser.setFeature("http://apache.org/xml/features/continue-after-fatal-error", true); SimpleCharacterReader readHandler = new SimpleCharacterReader(); parser.setErrorHandler(new ErrorHandler() { @@ -135,7 +135,7 @@ public class XmlExternalizationTest extends TestCase { SimpleCharacterWriter writer = new SimpleCharacterWriter(handler); writer.write(badChar); - XMLReader parser = XMLReaderFactory.createXMLReader(); + XMLReader parser = CoreUtil.newXmlReader(); parser.setFeature("http://apache.org/xml/features/continue-after-fatal-error", true); SimpleCharacterReader readHandler = new SimpleCharacterReader(); parser.setErrorHandler(new ErrorHandler() { |