abdera-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmsn...@apache.org
Subject svn commit: r583219 - in /incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax: FOMDocument.java FOMElement.java
Date Tue, 09 Oct 2007 16:42:27 GMT
Author: jmsnell
Date: Tue Oct  9 09:42:25 2007
New Revision: 583219

URL: http://svn.apache.org/viewvc?rev=583219&view=rev
Log:
Fix the FOMDocument complete so that it actually works properly :-) ... also, make the execution
conditional on whether or not the object is already complete

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

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java?rev=583219&r1=583218&r2=583219&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMDocument.java
Tue Oct  9 09:42:25 2007
@@ -351,6 +351,6 @@
    * to be modified.
    */
   public void complete() {
-    toString();
+    if (!isComplete() && getRoot() != null) getRoot().toString();
   }
 }

Modified: incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
URL: http://svn.apache.org/viewvc/incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java?rev=583219&r1=583218&r2=583219&view=diff
==============================================================================
--- incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
(original)
+++ incubator/abdera/java/trunk/parser/src/main/java/org/apache/abdera/parser/stax/FOMElement.java
Tue Oct  9 09:42:25 2007
@@ -811,6 +811,6 @@
    * that particular element has been completely parsed.
    */
   public void complete() {
-    toString();
+    if (!isComplete()) toString();
   }
 }



Mime
View raw message