Skip to content

Commit

Permalink
Replace DOM2DTM with DOM2DTMExt the patched version of DOM2DTM
Browse files Browse the repository at this point in the history
Looks like we replaced DOM2DTM with DOM2DTMExt when we fixed
#1320 but forgot to replace it in
the DOM2DTM manager

fixes #1749
  • Loading branch information
jvshahid authored and flavorjones committed Dec 1, 2018
1 parent 543968d commit ef8e089
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ext/java/nokogiri/internals/XalanDTMManagerPatch.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@
*/
package nokogiri.internals;

import javax.xml.transform.dom.DOMSource;

import org.apache.xml.dtm.DTM;
import org.apache.xml.dtm.DTMWSFilter;
import org.apache.xml.dtm.ref.dom2dtm.DOM2DTMExt;
import org.apache.xml.res.XMLErrorResources;
import org.apache.xml.res.XMLMessages;
import org.w3c.dom.Node;

import javax.xml.transform.dom.DOMSource;

/**
* @author kares
*/
Expand Down Expand Up @@ -75,8 +75,8 @@ public final class XalanDTMManagerPatch extends org.apache.xml.dtm.ref.DTMManage
// Have each DTM cache last DOM node search?
for(int i = 0; i < m_dtms.length; i++) {
DTM thisDTM = m_dtms[i];
if (thisDTM instanceof org.apache.xml.dtm.ref.dom2dtm.DOM2DTM) {
int handle = ((org.apache.xml.dtm.ref.dom2dtm.DOM2DTM) thisDTM).getHandleOfNode(node);
if (thisDTM instanceof DOM2DTMExt) {
int handle = ((DOM2DTMExt) thisDTM).getHandleOfNode(node);
if (handle != DTM.NULL) {
return handle;
}
Expand Down

0 comments on commit ef8e089

Please sign in to comment.