Skip to content

Commit c4a5666

Browse files
committed
Adjust and use the embedded JXpath
1 parent 048f7ab commit c4a5666

28 files changed

+5
-1122
lines changed

bundles/org.eclipse.e4.emf.xpath/.settings/.api_filters

Lines changed: 0 additions & 11 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/META-INF/MANIFEST.MF

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,12 @@ Manifest-Version: 1.0
22
Bundle-ManifestVersion: 2
33
Bundle-Name: %Bundle-Name
44
Bundle-SymbolicName: org.eclipse.e4.emf.xpath
5-
Bundle-Version: 0.5.0.qualifier
5+
Bundle-Version: 0.5.1.qualifier
66
Bundle-RequiredExecutionEnvironment: JavaSE-17
77
Require-Bundle: org.eclipse.emf.ecore;bundle-version="2.35.0",
88
org.eclipse.core.runtime;bundle-version="3.29.0"
99
Export-Package: org.eclipse.e4.emf.internal.xpath;x-internal:=true,
1010
org.eclipse.e4.emf.internal.xpath.helper;x-friends:="org.eclipse.e4.emf.xpath.test,org.eclipse.e4.ui.model.workbench,org.eclipse.e4.ui.workbench",
1111
org.eclipse.e4.emf.xpath
12-
Import-Package: org.apache.commons.jxpath;version="[1.3.0,2.0.0)",
13-
org.apache.commons.jxpath.ri;version="[1.3.0,2.0.0)",
14-
org.apache.commons.jxpath.ri.compiler;version="[1.3.0,2.0.0)",
15-
org.apache.commons.jxpath.ri.model;version="[1.3.0,2.0.0)",
16-
org.apache.commons.jxpath.util;version="[1.3.0,2.0.0)"
1712
Bundle-Vendor: %Bundle-Vendor
1813
Automatic-Module-Name: org.eclipse.e4.emf.xpath

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/FunctionLibrary.java

Lines changed: 0 additions & 134 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/XMLDocumentContainer.java

Lines changed: 0 additions & 109 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/functions/package-info.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/package-info.java

Lines changed: 0 additions & 22 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/ri/JXPathContextFactoryReferenceImpl.java

Lines changed: 0 additions & 39 deletions
This file was deleted.

bundles/org.eclipse.e4.emf.xpath/src/org/apache/commons/jxpath/ri/JXPathContextReferenceImpl.java

Lines changed: 2 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -88,24 +88,6 @@ public class JXPathContextReferenceImpl extends JXPathContext {
8888
nodeFactories.add(domFactory);
8989
}
9090

91-
// JDOM factory is only registered if JDOM is on the classpath
92-
final Object jdomFactory = allocateConditionally(
93-
"org.apache.commons.jxpath.ri.model.jdom.JDOMPointerFactory",
94-
"org.jdom.Document");
95-
if (jdomFactory != null) {
96-
nodeFactories.add(jdomFactory);
97-
}
98-
99-
// DynaBean factory is only registered if BeanUtils are on the classpath
100-
final Object dynaBeanFactory =
101-
allocateConditionally(
102-
"org.apache.commons.jxpath.ri.model.dynabeans."
103-
+ "DynaBeanPointerFactory",
104-
"org.apache.commons.beanutils.DynaBean");
105-
if (dynaBeanFactory != null) {
106-
nodeFactories.add(dynaBeanFactory);
107-
}
108-
10991
nodeFactories.add(new ContainerPointerFactory());
11092
createNodeFactoryArray();
11193
}
@@ -119,8 +101,8 @@ private static synchronized void createNodeFactoryArray() {
119101
(NodePointerFactory[]) nodeFactories.
120102
toArray(new NodePointerFactory[nodeFactories.size()]);
121103
Arrays.sort(nodeFactoryArray, (a, b) -> {
122-
final int orderA = ((NodePointerFactory) a).getOrder();
123-
final int orderB = ((NodePointerFactory) b).getOrder();
104+
final int orderA = a.getOrder();
105+
final int orderB = b.getOrder();
124106
return orderA - orderB;
125107
});
126108
}

0 commit comments

Comments
 (0)