abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veit...@apache.org
Subject svn commit: r1611214 - /abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Date Wed, 16 Jul 2014 22:44:24 GMT
Author: veithen
Date: Wed Jul 16 22:44:23 2014
New Revision: 1611214

URL: http://svn.apache.org/r1611214
Log:
Adapt to recent changes in Axiom and avoid accessing the internal state of Axiom nodes directly.

Modified:
    abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java

Modified: abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?rev=1611214&r1=1611213&r2=1611214&view=diff
==============================================================================
--- abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java (original)
+++ abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java Wed
Jul 16 22:44:23 2014
@@ -198,6 +198,7 @@ public class FOMElement extends OMElemen
             uri = null;
         }
         if (uri == null) {
+            OMContainer parent = getParent();
             if (parent instanceof Element) {
                 uri = ((Element)parent).getBaseUri();
             } else if (parent instanceof Document) {
@@ -213,6 +214,7 @@ public class FOMElement extends OMElemen
         if (IRIHelper.isJavascriptUri(uri) || IRIHelper.isMailtoUri(uri)) {
             uri = null;
         }
+        OMContainer parent = getParent();
         if (parent instanceof Element)
             baseUri = ((Element)parent).getResolvedBaseUri();
         else if (parent instanceof Document)
@@ -348,6 +350,7 @@ public class FOMElement extends OMElemen
 
     public <T extends Element> Document<T> getDocument() {
         Document<T> document = null;
+        OMContainer parent = getParent();
         if (parent != null) {
             if (parent instanceof Element) {
                 document = ((Element)parent).getDocument();



Mime
View raw message