Skip to content

Commit

Permalink
Refactor XML parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Aug 3, 2023
1 parent 53ffe8e commit bf71db5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bundles/org.eclipse.swt.tools.spies/META-INF/MANIFEST.MF
Expand Up @@ -9,7 +9,7 @@ Export-Package: org.eclipse.swt.tools.internal,
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",
org.eclipse.swt.tools.base;bundle-version="3.106.0",
org.eclipse.e4.ui.model.workbench;bundle-version="2.1.400",
org.eclipse.swt;bundle-version="3.119.0",
Expand Down
2 changes: 1 addition & 1 deletion bundles/org.eclipse.swt.tools/META-INF/MANIFEST.MF
Expand Up @@ -8,7 +8,7 @@ Export-Package: org.eclipse.swt.tools.internal; x-internal:=true
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: JavaSE-17
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.4.0",
Require-Bundle: org.eclipse.core.runtime;bundle-version="3.29.0",
org.eclipse.core.resources;bundle-version="3.4.0",
org.eclipse.jdt.core;bundle-version="3.4.0",
org.eclipse.ui;bundle-version="3.4.0",
Expand Down
Expand Up @@ -17,8 +17,6 @@
import java.util.*;
import java.util.Map.*;

import javax.xml.parsers.*;

import org.w3c.dom.*;
import org.xml.sax.*;

Expand Down Expand Up @@ -948,7 +946,9 @@ public void setSelectorEnum(String selectorEnumName) {
Document getDocument(String xmlPath) {
try (InputStream is = createInputStream(xmlPath)) {
if (is != null) {
return DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(is));
@SuppressWarnings("restriction")
Document d = org.eclipse.core.internal.runtime.XmlProcessorFactory.parseWithErrorOnDOCTYPE(new InputSource(is));
return d;
}
} catch (Exception e) {
//ignored
Expand Down

0 comments on commit bf71db5

Please sign in to comment.